1234567891011121314151617181920212223242526 |
- 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));
- console.log(store)
- class HuiLiaoApp extends React.Component {
-
- render() {
- return (
- <Provider store={store}>
- <AppNavigator />
- </Provider>
- );
- }
- }
- AppRegistry.registerComponent('huiliaoJmessage', () => HuiLiaoApp);
- export default HuiLiaoApp;
|