Created
January 3, 2021 12:19
-
-
Save AllanGraves/5bfebbb5bdd46420c5ef109ab2890b5d to your computer and use it in GitHub Desktop.
Initial Setup for a React Native Navigation Container
This file contains 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 from 'react'; | |
import {NavigationContainer} from '@react-navigation/native'; | |
import {SafeAreaView, ScrollView, View, Text, StatusBar} from 'react-native'; | |
const App: () => React$Node = () => { | |
return ( | |
<> | |
<NavigationContainer> | |
<StatusBar barStyle="dark-content" /> | |
<SafeAreaView> | |
<ScrollView contentInsetAdjustmentBehavior="automatic"> | |
<View> | |
<View> | |
<Text>Initial Screen</Text> | |
</View> | |
</View> | |
</ScrollView> | |
</SafeAreaView> | |
</NavigationContainer> | |
</> | |
); | |
}; | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment