-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
48 lines (39 loc) · 1.53 KB
/
Copy pathApp.js
File metadata and controls
48 lines (39 loc) · 1.53 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
45
46
47
48
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer, DefaultTheme } from "@react-navigation/native";
import { useFonts } from "expo-font";
import Home from "./screens/Home";
const theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
background: "transparent",
},
};
const Stack = createStackNavigator();
const App = () => {
const [loaded] = useFonts({
PoppinsBlack: require("./assets/fonts/Poppins-Black.ttf"),
PoppinsBold: require("./assets/fonts/Poppins-Bold.ttf"),
PoppinsExtraLight: require("./assets/fonts/Poppins-ExtraLight.ttf"),
PoppinsItalic: require("./assets/fonts/Poppins-Italic.ttf"),
PoppinsLight: require("./assets/fonts/Poppins-Light.ttf"),
PoppinsMedium: require("./assets/fonts/Poppins-Medium.ttf"),
PoppinsRegular: require("./assets/fonts/Poppins-Regular.ttf"),
PoppinsThin: require("./assets/fonts/Poppins-Thin.ttf"),
PoppinsThinItalic: require("./assets/fonts/Poppins-ThinItalic.ttf"),
});
if (!loaded) return null;
return (
<NavigationContainer theme={theme}>
<Stack.Navigator
screenOptions={{ headerShown: false }}
initialRouteName="Home"
>
<Stack.Screen name="Home" component={Home} />
{/* <Stack.Screen name="Messages" component={Details}/> */}
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;