1234567891011121314151617181920212223 |
- import React from 'react';
- import { AppRegistry } from 'react-native';
- import { Provider } from 'react-redux';
- import { createStore, applyMiddleware } from 'redux';
- import AppReducer from './src/reducers';
- import { AppNavigator, middleware } from './src/navigators/AppNavigator';
- const store = createStore(AppReducer, applyMiddleware(middleware));
- class HuiLiaoApp extends React.Component {
- render() {
- return (
- <Provider store={store}>
- <AppNavigator />
- </Provider>
- );
- }
- }
- AppRegistry.registerComponent('HuiLiaoApp', () => HuiLiaoApp);
- export default HuiLiaoApp;
|