Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
return (
)
}
}
// Wrap the App with Amplify HOC. Set to true if you want to render sing out button
const AppWithAuth = withAuthenticator(App, false)
export default () => (
)
)
}
}
export default withAuthenticator(
App, {
// Render a sign out button once logged in
includeGreetings: true}
)
const styles = StyleSheet.create({
container: {
flex: 0.10,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'flex-start',
borderBottomWidth: 1,
borderBottomColor: '#a8abaf',
},
textStyle: {
fontSize: 18,
console.warn(error);
};
_handleFinishLoading = () => {
this.setState({ isLoadingComplete: true });
};
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
},
});
export default withAuthenticator(App, true);
render() {
const AppComponent = withAuthenticator(App, null, null, null, theme)
return (
)
}
}