-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
32 lines (28 loc) · 778 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
import { StatusBar } from "expo-status-bar";
import {
useFonts,
DMSans_400Regular,
DMSans_500Medium,
DMSans_700Bold,
} from "@expo-google-fonts/dm-sans";
import { ThemeProvider } from "styled-components/native";
import { NavigationContainer } from "@react-navigation/native";
import themes from "./src/themes";
import Routes from "./src/Routes/index.routes";
import Home from "./src/Screens/Home";
export default function App() {
const [fontsLoaded] = useFonts({
DMSans_400Regular,
DMSans_500Medium,
DMSans_700Bold,
});
if (!fontsLoaded) return null;
return (
<ThemeProvider theme={themes}>
<NavigationContainer>
<Routes />
<StatusBar style="dark" translucent />
</NavigationContainer>
</ThemeProvider>
);
}