mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 17:18:09 +00:00
28 lines
593 B
JavaScript
28 lines
593 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);
|
|
|
|
export default ReduxExampleApp;
|