-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
39 lines (32 loc) · 943 Bytes
/
App.tsx
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
37
38
39
import React, {useEffect} from 'react';
import {StyleSheet, View} from 'react-native';
import {Provider} from 'react-redux';
import {combineReducers, createStore} from 'redux';
import SplashScreen from 'react-native-splash-screen';
import AppNavigation from './src/navigation/AppNavigation';
import StepReducer from './src/store/reducers/StepReducer';
import UserInfoReducer from './src/store/reducers/UserInfoReducer';
import colors from './src/constants/colors';
export default function App() {
const reducers = combineReducers({
step: StepReducer,
userInfo: UserInfoReducer,
});
const store = createStore(reducers);
useEffect(() => {
SplashScreen.hide();
}, []);
return (
<View style={styles.container}>
<Provider store={store}>
<AppNavigation />
</Provider>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.white,
},
});