-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
43 lines (38 loc) · 863 Bytes
/
Copy pathApp.tsx
File metadata and controls
43 lines (38 loc) · 863 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
42
43
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import {
useFonts,
Poppins_700Bold,
Poppins_400Regular,
Poppins_600SemiBold,
Poppins_500Medium,
} from '@expo-google-fonts/poppins';
import { NavigationContainer } from '@react-navigation/native';
import Stack from './src/navigations/Stack';
export default function App() {
const [fontsLoaded] = useFonts({
Poppins_400Regular,
Poppins_600SemiBold,
Poppins_700Bold,
Poppins_500Medium,
});
if (!fontsLoaded) {
return null;
}
return (
<NavigationContainer>
<Stack />
</NavigationContainer>
);
}
const styles = StyleSheet.create({
text: {
fontFamily: 'Poppins_400Regular',
},
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});