-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
42 lines (38 loc) · 1.25 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
import { StatusBar } from "expo-status-bar";
import { ThemeProvider } from "@rneui/themed";
import curaTheme from "./src/theme/theme";
import { NavigationContainer } from "@react-navigation/native";
import AppNavigator from "./src/navigation/AppNavigator";
import React from "react";
import { useState, useEffect } from "react";
import "expo-dev-client";
import * as SplashScreen from "expo-splash-screen";
import { useFonts } from "expo-font";
import { LogBox } from "react-native";
LogBox.ignoreLogs(["Warning: ..."]); // Ignore log notification by message
LogBox.ignoreAllLogs(); //Ignore all log notifications
export default function App() {
const [fontsLoaded] = useFonts({
SatoshiMedium: require("./src/assets/fonts/Satoshi-Medium.otf"),
SatoshiBold: require("./src/assets/fonts/Satoshi-Bold.otf"),
SatoshiBlack: require("./src/assets/fonts/Satoshi-Black.otf"),
});
useEffect(() => {
async function prepare() {
try {
await SplashScreen.preventAutoHideAsync();
} catch (e) {
console.warn(e);
}
}
prepare();
}, []);
return (
<ThemeProvider theme={curaTheme}>
<NavigationContainer>
<AppNavigator />
<StatusBar style="auto" />
</NavigationContainer>
</ThemeProvider>
);
}