-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
31 lines (27 loc) · 889 Bytes
/
App.js
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
import { StatusBar } from "expo-status-bar";
import React from "react";
import { SafeAreaProvider } from "react-native-safe-area-context";
import * as Sentry from "sentry-expo";
import useCachedResources from "./src/hooks/useCachedResources";
import useColorScheme from "./src/hooks/useColorScheme";
import Navigation from "./src/navigation";
export default function App() {
const isLoadingComplete = useCachedResources();
const colorScheme = useColorScheme();
Sentry.init({
dsn:
"https://255c4d4ec5fb49acaf88d985154dab7b@o440198.ingest.sentry.io/5408391",
enableInExpoDevelopment: true,
debug: true,
});
if (!isLoadingComplete) {
return null;
} else {
return (
<SafeAreaProvider>
<StatusBar barStyle="dark-content" backgroundColor={"white"} />
<Navigation colorScheme={colorScheme} />
</SafeAreaProvider>
);
}
}