mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-02 17:28:36 +08:00
* [Example] Get tests passing on ReduxExample and NavigationPlayground * [CI] Use more vague versioning so we're always up to date * [CI] Test that the example apps run without error * [CI] Install the current local version of react-nav before testing * Fix tabs => spaces in ReduxExample/package.json * Remove LinkingExample entirely It's now part of NavigationPlayground.
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;
|