-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
37 lines (33 loc) · 1.11 KB
/
App.tsx
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
//import {useIsAuthenticated} from "@azure/msal-react";
import { AuthProvider } from "./src/context/AuthContext";
import AppNav from "./src/navigation/AppNav";
import React, { useState, useEffect } from "react";
import { MoodProvider } from "./src/components/PopUps/MoodPointsContext";
import { NameProvider } from "./src/context/NameContext";
import * as Linking from "expo-linking";
import Toast from "react-native-toast-message";
import Notification from './src/components/Notifications/Notification'
import "react-native-url-polyfill/auto";
import { QueryClient, QueryClientProvider } from "react-query";
const queryClient = new QueryClient();
const App = () => {
const url = Linking.useURL();
const onScreenLoad = () => {
console.log(url);
};
return (
<QueryClientProvider client={queryClient}>
<MoodProvider>
<AuthProvider>
<NameProvider>
<AppNav />
</NameProvider>
<Notification/>
</AuthProvider>
<Toast />
</MoodProvider>
</QueryClientProvider>
);
};
//TOAST has to be last child otherwise it won't work!
export default App;