-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
38 lines (33 loc) · 1 KB
/
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
33
34
35
36
37
38
import "react-native-gesture-handler";
import { useFonts } from "expo-font";
import { StatusBar } from "expo-status-bar";
import React from "react";
import { SafeAreaView } from "react-native";
import { ThemeProvider } from "react-native-magnus";
import { RecoilRoot } from "recoil";
import Persister from "./atoms/Persister";
import { Navigation } from "./navigation";
export const persistInfo: any = {};
export default function App() {
const [loaded] = useFonts({
RobotoRegular: require("./assets/fonts/Roboto-Regular.ttf"),
RobotoMedium: require("./assets/fonts/Roboto-Medium.ttf"),
RobotoBold: require("./assets/fonts/Roboto-Bold.ttf"),
});
if (!loaded) {
return null;
}
return (
<ThemeProvider>
<RecoilRoot>
<Persister>
<SafeAreaView style={{ flex: 1 }}>
<SafeAreaView style={{ flex: 0 }} />
<StatusBar style="auto" />
<Navigation />
</SafeAreaView>
</Persister>
</RecoilRoot>
</ThemeProvider>
);
}