-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
34 lines (31 loc) · 909 Bytes
/
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
import {View} from 'react-native';
import React, {useEffect} from 'react';
import AppNavigator from '@/router/AppNavigator';
import '@/translations';
import {
SafeAreaProvider,
initialWindowMetrics,
} from 'react-native-safe-area-context';
import {AuthProvider} from '@/context';
import {QueryClient, QueryClientProvider} from '@tanstack/react-query';
import {fireAuth} from '@/services/firebase';
const s = {flex: 1};
const queryClient = new QueryClient();
const App = () => {
useEffect(() => {
fireAuth.facebookSettings();
fireAuth.configureGoogleSignin();
}, []);
return (
<View style={s}>
<QueryClientProvider client={queryClient}>
<AuthProvider>
<SafeAreaProvider initialMetrics={initialWindowMetrics}>
<AppNavigator />
</SafeAreaProvider>
</AuthProvider>
</QueryClientProvider>
</View>
);
};
export default App;