Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return(
)
}
}
const App = createAppContainer(TabNavWithProps)
const theme = {
...AmplifyTheme,
button: {
...AmplifyTheme.button,
backgroundColor: colors.primaryLight
},
sectionFooterLink: {
...AmplifyTheme.sectionFooterLink,
color: colors.primaryLight
},
buttonDisabled: {
...AmplifyTheme.buttonDisabled,
backgroundColor: colors.primaryOpaque(0.6)
}
}
class AppWithAuth extends React.Component {
state = {
signedIn: true
}
async componentDidMount() {
try {
await Auth.currentAuthenticatedUser()
this.setState({ signedIn: true })