-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
31 lines (27 loc) · 838 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React from 'react';
import { AppRegistry } from 'react-native';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { LocaleProvider } from 'antd-mobile'
import AppReducer from './src/reducers';
import AppWithNavigationState from './src/navigators/AppWithNavigationState';
// import { middleware } from './src/utils/redux';
import thunk from 'redux-thunk'
import enUS from 'antd-mobile/lib/locale-provider/en_US'
const store = createStore(
AppReducer,
applyMiddleware(thunk),
);
class App extends React.Component {
render() {
return (
<Provider store={store}>
<LocaleProvider locale={enUS}>
<AppWithNavigationState />
</LocaleProvider>
</Provider>
);
}
}
AppRegistry.registerComponent('App', () => App);
export default App;