-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
28 lines (26 loc) · 843 Bytes
/
Copy pathApp.js
File metadata and controls
28 lines (26 loc) · 843 Bytes
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
import React, { useEffect } from "react";
import AppProvider from "./Context/AppProvider";
import { NavigationContainer } from "@react-navigation/native";
import { ActionSheetProvider } from "@expo/react-native-action-sheet";
import data from "./data/data.json";
import Wrapper from "./Wrapper";
import * as Notifications from "expo-notifications";
function App() {
Notifications.setNotificationHandler({
handleNotification: async () => ({
shouldShowAlert: true,
shouldPlaySound: true,
shouldSetBadge: true,
}),
});
return (
<ActionSheetProvider>
<AppProvider>
<NavigationContainer>
<Wrapper />
</NavigationContainer>
</AppProvider>
</ActionSheetProvider>
);
}
export default App;