-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathApp.js
41 lines (33 loc) · 1.13 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 AppLoading from 'expo-app-loading';
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { Platform, UIManager, View } from 'react-native';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { Quicksand_400Regular, Quicksand_600SemiBold, useFonts } from '@expo-google-fonts/quicksand';
import Routes from './src/routes';
import { persistedStore, store } from './src/store';
if (Platform.OS === 'android' && UIManager.setLayoutAnimationEnabledExperimental) {
UIManager.setLayoutAnimationEnabledExperimental(true);
}
export default function App() {
const [fontsLoaded] = useFonts({
Quicksand_400Regular,
Quicksand_600SemiBold,
});
if (!fontsLoaded) return <AppLoading />;
return (
<Provider store={store}>
<PersistGate loading={<AppLoading />} persistor={persistedStore}>
<View style={{ backgroundColor: '#191919', flex: 1 }}>
<Routes />
<StatusBar
animated
style="light"
translucent={false}
/>
</View>
</PersistGate>
</Provider>
);
}