Skip to content

Instantly share code, notes, and snippets.

@samcorcos
Created December 15, 2019 00:53
Show Gist options
  • Save samcorcos/11ec123b2990fc15ef11fbcf4d364743 to your computer and use it in GitHub Desktop.
Save samcorcos/11ec123b2990fc15ef11fbcf4d364743 to your computer and use it in GitHub Desktop.
import React from 'react'
import {SafeAreaView, View, Text} from 'react-native'
import Amplify from 'aws-amplify'
import awsconfig from './aws-exports'
import {withAuthenticator} from 'aws-amplify-react-native'
Amplify.configure(awsconfig)
const App = props => {
return (
<SafeAreaView>
<View>
<Text>Home screen!</Text>
</View>
</SafeAreaView>
)
}
export default withAuthenticator(App, true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment