Skip to content

Instantly share code, notes, and snippets.

@youneshenniwrites
Last active December 12, 2018 15:59
Show Gist options
  • Save youneshenniwrites/d7fb9f4a214f26fdd59c379d2b9bab79 to your computer and use it in GitHub Desktop.
Save youneshenniwrites/d7fb9f4a214f26fdd59c379d2b9bab79 to your computer and use it in GitHub Desktop.
Zopher second commit
import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
// Amplify auth imports and config
import Amplify from '@aws-amplify/core'
import { withAuthenticator } from 'aws-amplify-react-native'
import config from './aws-exports';
Amplify.configure(config)
class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
</View>
);
}
}
export default withAuthenticator(App, {includeGreetings: true})
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment