-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathApp.tsx
More file actions
42 lines (33 loc) · 939 Bytes
/
App.tsx
File metadata and controls
42 lines (33 loc) · 939 Bytes
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 from "react";
import { View, Text } from 'react-native';
import { StatusBar } from 'expo-status-bar';
import * as SplashScreen from 'expo-splash-screen';
import { useFonts, Inter_400Regular, Inter_500Medium } from '@expo-google-fonts/inter';
import { theme } from './src/theme';
import { DrawerNavigation } from './src/screen/DrawerNavigation';
import { TabNavigation } from './src/screen/TabNavigation';
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
/>
{/* <DrawerNavigation /> */}
<TabNavigation />
</View>
);
}