-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
36 lines (29 loc) · 837 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
32
33
34
35
36
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React, {useEffect} from 'react';
import {combineReducers, createStore, applyMiddleware} from 'redux';
import {Provider} from 'react-redux';
import ExpenseNavigator from './Navigator/ExpenseBottomNavigator';
import AddDataReducer from './Store/Reducers/AddDataReducer';
import ReduxThunk from 'redux-thunk';
import SplashScreen from 'react-native-lottie-splash-screen';
const rootReducer = combineReducers({
data: AddDataReducer,
});
const store = createStore(rootReducer, applyMiddleware(ReduxThunk));
const App: () => React$Node = () => {
useEffect(() => {
SplashScreen.hide();
}, []);
return (
<Provider store={store}>
<ExpenseNavigator />
</Provider>
);
};
export default App;