- Back button fix (#156)

- Login text input focus
This commit is contained in:
Diego Mello 2017-12-21 17:17:41 -02:00 committed by Guilherme Gazzo
parent 157b85c2cb
commit 251293116a
2 changed files with 11 additions and 1 deletions

View File

@ -30,6 +30,12 @@ export default class Routes extends React.Component {
return !this.props.app.ready && this.props.appInit(); return !this.props.app.ready && this.props.appInit();
} }
componentDidMount() {
if (!this.props.app.starting) {
SplashScreen.hide();
}
}
componentWillReceiveProps(nextProps) { componentWillReceiveProps(nextProps) {
if (!nextProps.app.starting && this.props.app.starting !== nextProps.app.starting) { if (!nextProps.app.starting && this.props.app.starting !== nextProps.app.starting) {
SplashScreen.hide(); SplashScreen.hide();

View File

@ -88,7 +88,11 @@ class LoginView extends React.Component {
contentContainerStyle={styles.container} contentContainerStyle={styles.container}
keyboardVerticalOffset={128} keyboardVerticalOffset={128}
> >
<ScrollView style={styles.loginView}> <ScrollView
style={styles.loginView}
keyboardDismissMode='interactive'
keyboardShouldPersistTaps='always'
>
<SafeAreaView> <SafeAreaView>
<View style={styles.formContainer}> <View style={styles.formContainer}>
<TextInput <TextInput