-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
28 lines (24 loc) · 945 Bytes
/
App.js
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
import React from 'react';
import { NativeBaseProvider } from 'native-base';
import ExpoStatusBar from 'expo-status-bar/build/ExpoStatusBar';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import Navigation from './navigation';
import { useColorScheme } from 'react-native';
import AuthContext from './contexts/Auth';
export default function App() {
const colorScheme = useColorScheme();
const [userToken, setUserToken] = React.useState(null);
return (
<NativeBaseProvider>
<SafeAreaProvider>
<GestureHandlerRootView style={{flex:1}}>
<AuthContext.Provider value={{ userToken, setUserToken }}>
<Navigation colorScheme={colorScheme}/>
</AuthContext.Provider>
<ExpoStatusBar style={'dark'} />
</GestureHandlerRootView>
</SafeAreaProvider>
</NativeBaseProvider>
);
}