Created
October 20, 2020 23:11
-
-
Save alanfoandrade/a1cb3ffe1d5ddc3c917057110856d621 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'react-native-gesture-handler'; | |
import React, { useEffect } from 'react'; | |
import { SafeAreaView, StatusBar } from 'react-native'; | |
import { NavigationContainer } from '@react-navigation/native'; | |
import SplashScreen from 'react-native-splash-screen'; | |
import AppProvider from './hooks'; | |
import Routes from './routes'; | |
const App: React.FC = () => { | |
useEffect(() => { | |
SplashScreen.hide(); | |
}, []); | |
return ( | |
<NavigationContainer> | |
<StatusBar barStyle="light-content" backgroundColor="#bbb" /> | |
<AppProvider> | |
<SafeAreaView style={{ flex: 1, backgroundColor: '#bbb' }}> | |
<Routes /> | |
</SafeAreaView> | |
</AppProvider> | |
</NavigationContainer> | |
); | |
}; | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment