Skip to content

Instantly share code, notes, and snippets.

@AllanGraves
Created January 3, 2021 12:19
Show Gist options
  • Save AllanGraves/5bfebbb5bdd46420c5ef109ab2890b5d to your computer and use it in GitHub Desktop.
Save AllanGraves/5bfebbb5bdd46420c5ef109ab2890b5d to your computer and use it in GitHub Desktop.
Initial Setup for a React Native Navigation Container
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