-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
44 lines (36 loc) · 1.06 KB
/
App.js
File metadata and controls
44 lines (36 loc) · 1.06 KB
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
44
import React from 'react';
import {SafeAreaView, Image} from 'react-native';
import { useFonts } from 'expo-font';
import {Shop, Wallet, SignUp, Page67, CartPage} from './screens';
import { createStackNavigator } from '@react-navigation/stack';
import { NavigationContainer } from '@react-navigation/native';
import ProfilePage from './screens/profile';
const Stack = createStackNavigator();
const App = () =>{
let [fontsLoaded] = useFonts({
'Poppins-Medium': require('./assets/fonts/Poppins-Medium.otf'),
'Poppins-SemiBold': require('./assets/fonts/Poppins-SemiBold.otf'),
});
if (!fontsLoaded) {
return (<SafeAreaView>
<Image
source={require('./assets/splash.png')}
/>
</SafeAreaView>);
} else {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={
{
headerShown: false,
}
}
initialRouteName="Profile"
>
<Stack.Screen name="Profile" component={ProfilePage}></Stack.Screen>
</Stack.Navigator>
</NavigationContainer>
);
}
}
export default App;