-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
30 lines (28 loc) · 993 Bytes
/
App.js
File metadata and controls
30 lines (28 loc) · 993 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
29
30
import React from "react";
import * as Notifications from 'expo-notifications';
// Ensure notifications are shown when the app is foregrounded
Notifications.setNotificationHandler({
handleNotification: async () => ({
shouldShowAlert: true,
shouldPlaySound: true,
shouldSetBadge: false,
}),
});
import AppNavigator from "./src/navigation/AppNavigator";
import { ScheduleProvider } from "./src/context/ScheduleContext";
import { AuthProvider } from "./src/context/AuthContext";
import { AdherenceProvider } from "./src/context/AdherenceContext";
import { FamilyProvider } from "./src/context/FamilyContext";
export default function App() {
return (
<AuthProvider>
<AdherenceProvider>
<ScheduleProvider>
<FamilyProvider>
<AppNavigator />
</FamilyProvider>
</ScheduleProvider>
</AdherenceProvider>
</AuthProvider>
);
}