-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
30 lines (24 loc) · 775 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
import { useState } from 'react';
import Navigation from './Navigation';
import * as SplashScreen from 'expo-splash-screen';
import { ThemeProvider } from './components/ThemeContext';
import { AutocompleteDropdownContextProvider } from 'react-native-autocomplete-dropdown';
SplashScreen.preventAutoHideAsync();
function App() {
const [appIsReady, setAppIsReady] = useState(false);
setTimeout(async () => {
await SplashScreen.hideAsync();
setAppIsReady(true);
}, 3000);
if (!appIsReady) {
return null;
}
return (
<ThemeProvider>
<AutocompleteDropdownContextProvider>
<Navigation />
</AutocompleteDropdownContextProvider>
</ThemeProvider>
);
}
export default App;