Skip to content

Commit

Permalink
Merge pull request #1 from tomoima525/some-updates
Browse files Browse the repository at this point in the history
boolean type check, redux devtool
  • Loading branch information
tomoima525 committed Dec 16, 2017
2 parents 907f3d3 + b07d995 commit 6db093b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ import React,{Component} from 'react';
import {Provider} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
import {createEpicMiddleware} from 'redux-observable';
import { composeWithDevTools } from 'remote-redux-devtools';
import chuckNorris from './js/reducers';
import chuckEpic from './js/epics';
import App from './js/App';

import {AppRegistry} from 'react-native';

const composeEnhancers = composeWithDevTools({ realtime: true, port: 8000 });
const epicMiddleware = createEpicMiddleware(chuckEpic);

const store = createStore(chuckNorris, applyMiddleware(epicMiddleware));
const store = createStore(chuckNorris, composeEnhancers(applyMiddleware(epicMiddleware)));

export default class ChuckNorrisViewer extends Component {

Expand Down
2 changes: 1 addition & 1 deletion js/components/ResultListComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Row = (props) => {

ResultListComponent.propTypes = {
items: PropTypes.array,
isFetching: PropTypes.boolean,
isFetching: PropTypes.bool,
}

const styles = StyleSheet.create({
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"babel-jest": "19.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "19.0.2",
"react-test-renderer": "~15.4.1"
"react-test-renderer": "~15.4.1",
"remote-redux-devtools": "^0.5.7"
},
"jest": {
"preset": "react-native"
Expand Down

0 comments on commit 6db093b

Please sign in to comment.