-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
39 lines (33 loc) · 840 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-native-gesture-handler';
import { StatusBar } from 'expo-status-bar';
import { View } from 'react-native';
import { theme } from './src/theme';
import { Widget } from './src/components/widget';
import * as SplashScreen from 'expo-splash-screen';
import { useFonts, Inter_400Regular, Inter_500Medium } from '@expo-google-fonts/inter';
export default function App() {
SplashScreen.preventAutoHideAsync();
const [fontsLoaded] = useFonts({
Inter_400Regular,
Inter_500Medium
});
if (!fontsLoaded) {
return null;
}
SplashScreen.hideAsync();
return (
<View
style={{
flex: 1,
backgroundColor: theme.colors.background
}}
>
<StatusBar
style="light"
backgroundColor="transparent"
translucent
/>
<Widget />
</View>
);
}