1- import { createStore , applyMiddleware , combineReducers } from 'redux' ;
2- import { Provider } from 'react-redux' ;
3- import { Navigation } from 'react-native-navigation' ;
1+ import { createStore , applyMiddleware , combineReducers } from 'redux' ;
2+ import { Provider } from 'react-redux' ;
3+ import { Navigation } from 'react-native-navigation' ;
44import thunk from 'redux-thunk' ;
55import * as reducers from './reducers' ;
66import * as appActions from './reducers/app/actions' ;
@@ -11,7 +11,7 @@ const reducer = combineReducers(reducers);
1111const store = createStoreWithMiddleware ( reducer ) ;
1212
1313// screen related book keeping
14- import { registerScreens } from './screens' ;
14+ import { registerScreens } from './screens' ;
1515registerScreens ( store , Provider ) ;
1616
1717// notice that this is just a simple class, it's not a React component
@@ -23,7 +23,7 @@ export default class App {
2323 }
2424
2525 onStoreUpdate ( ) {
26- const { root } = store . getState ( ) . app ;
26+ const { root} = store . getState ( ) . app ;
2727 // handle a root change
2828 // if your app doesn't change roots in runtime, you can remove onStoreUpdate() altogether
2929 if ( this . currentRoot != root ) {
0 commit comments