-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
35 lines (28 loc) · 959 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
import { useFonts } from 'expo-font';
import { Platform, UIManager } from 'react-native';
import React from 'react';
import { RootContextProvider } from './src/Context/RootContext';
import MainScreen from './src/Screens/MainScreen';
if (Platform.OS === 'android') {
if (UIManager.setLayoutAnimationEnabledExperimental) {
UIManager.setLayoutAnimationEnabledExperimental(true);
}
}
const App = () => {
const [fontloaded] = useFonts({
'WorkSans-Light' : require('./src/Assets/Fonts/WorkSans-Light.ttf'),
'WorkSans-Medium' : require('./src/Assets/Fonts/WorkSans-Medium.ttf'),
'WorkSans-Regular' : require('./src/Assets/Fonts/WorkSans-Regular.ttf'),
'WorkSans-SemiBold' : require('./src/Assets/Fonts/WorkSans-SemiBold.ttf'),
})
if(!fontloaded) return null;
return (
<RootContextProvider>
<MainScreen />
</RootContextProvider>
)
}
export default App;
// QCF?r*qp/6h//TH
// demowodero