-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
41 lines (34 loc) · 1.22 KB
/
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
37
38
39
40
41
import React, { useEffect } from 'react';
import { View, Text, StatusBar ,LogBox} from 'react-native';
import MainRouteConfig from './src/MainRouteConfig';
import { SafeAreaView } from 'react-native-safe-area-context';
import Colors from './src/common/Colors';
import LinearGradient from 'react-native-linear-gradient';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import Loader from './src/common/Loader';
import { createStore, applyMiddleware } from "redux";
import { Provider } from "react-redux";
import mainReducer from "./src/store/MainReducer";
import ReduxThunk from "redux-thunk";
import SplashScreen from 'react-native-splash-screen'
export const store = createStore(
mainReducer,
applyMiddleware(ReduxThunk)
);
LogBox.ignoreLogs(['VirtualizedLists should never be nested']);
export default App = () => {
useEffect(()=>{
SplashScreen.hide();
},[])
return (
<Provider store={store}>
<SafeAreaView style={{ flex: 1, backgroundColor: Colors.primary }}>
<StatusBar backgroundColor={Colors.statusbar} />
<GestureHandlerRootView style={{ flex: 1 }}>
<Loader />
<MainRouteConfig />
</GestureHandlerRootView>
</SafeAreaView>
</Provider>
)
}