-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
32 lines (28 loc) · 1008 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
import 'react-native-gesture-handler';
import * as SplashScreen from 'expo-splash-screen';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
// providers
import { PortalProvider } from '@gorhom/portal';
import { ThemeProvider } from '@src/theme/ThemeProvider';
import { AuthProvider } from '@src/contexts/AuthContext';
import { SafeAreaProvider } from 'react-native-safe-area-context';
// routes
import { Routes } from '@src/routes';
// ----------------------------------------------------------------------
SplashScreen.preventAutoHideAsync();
// ----------------------------------------------------------------------
export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<PortalProvider>
<SafeAreaProvider>
<ThemeProvider>
<AuthProvider>
<Routes />
</AuthProvider>
</ThemeProvider>
</SafeAreaProvider>
</PortalProvider>
</GestureHandlerRootView>
);
}