123456789101112131415161718192021222324 |
- 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;
|