Kevin Cooper 6978ceec85 Fix the ReduxExample app (2) (#945)
* [Example] Fix the ReduxExample app

Just a bit of cleanup so it can run.

* [Example] Remove AsyncStorage persistence from ReduxExample

It's a cool feature, but isn't necessary to demonstrate how to use
react-navigation and may cause more confusion than it's worth.
2017-04-07 09:06:44 -07:00

26 lines
560 B
JavaScript

/**
* @flow
*/
import React from 'react';
import { AppRegistry } from 'react-native';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import AppReducer from './src/reducers';
import AppWithNavigationState from './src/navigators/AppNavigator';
class ReduxExampleApp extends React.Component {
store = createStore(AppReducer);
render() {
return (
<Provider store={this.store}>
<AppWithNavigationState />
</Provider>
);
}
}
AppRegistry.registerComponent('ReduxExample', () => ReduxExampleApp);