-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
28 lines (24 loc) · 824 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
import * as React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import RootStackScreen from './app/navigation/RootStackScreen';
import {createStore, applyMiddleware} from 'redux';
import {Provider} from 'react-redux';
import thunk from 'redux-thunk';
import reducer from './app/reducer';
import {handleChanges, restoreState} from './app/services/persistHandler';
const createStoreWithMiddleware = applyMiddleware(thunk)(createStore);
const store = createStoreWithMiddleware(reducer);
console.disableYellowBox = true;
console.ignoredYellowBox = ['Warning:'];
function App() {
restoreState(store);
handleChanges(store);
return (
<Provider store={store}>
<NavigationContainer>
<RootStackScreen />
</NavigationContainer>
</Provider>
);
}
export default App;