-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
46 lines (42 loc) · 1.13 KB
/
App.js
File metadata and controls
46 lines (42 loc) · 1.13 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
import React from "react";
import { StatusBar, LogBox } from "react-native";
import { AppLoading } from "expo";
import { NavigationContainer } from "@react-navigation/native";
import {
Raleway_800ExtraBold,
Raleway_500Medium,
Raleway_600SemiBold,
useFonts,
} from "@expo-google-fonts/raleway";
import * as Notifications from "expo-notifications";
import Routes from "./src/routes";
export default function App() {
// YellowBox.ignoreWarnings(['Setting a timer']);
// console.disableYellowBox = true;
LogBox.ignoreAllLogs(true);
const [fontsLoaded] = useFonts({
Raleway_800ExtraBold,
Raleway_600SemiBold,
Raleway_500Medium,
});
Notifications.setNotificationHandler({
handleNotification: async () => ({
shouldShowAlert: true,
shouldPlaySound: false,
shouldSetBadge: false,
}),
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<NavigationContainer>
<StatusBar
barStyle="dark-content"
backgroundColor="transparent"
translucent
/>
<Routes />
</NavigationContainer>
);
}