From 251293116a6326ab4483274dd3fe6281c2f70f57 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 21 Dec 2017 17:17:41 -0200 Subject: [PATCH] - Back button fix (#156) - Login text input focus --- app/containers/Routes.js | 6 ++++++ app/views/LoginView.js | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/containers/Routes.js b/app/containers/Routes.js index 4c8a82c17..b62f1443a 100644 --- a/app/containers/Routes.js +++ b/app/containers/Routes.js @@ -30,6 +30,12 @@ export default class Routes extends React.Component { return !this.props.app.ready && this.props.appInit(); } + componentDidMount() { + if (!this.props.app.starting) { + SplashScreen.hide(); + } + } + componentWillReceiveProps(nextProps) { if (!nextProps.app.starting && this.props.app.starting !== nextProps.app.starting) { SplashScreen.hide(); diff --git a/app/views/LoginView.js b/app/views/LoginView.js index f1f213ca8..c3d8b4e71 100644 --- a/app/views/LoginView.js +++ b/app/views/LoginView.js @@ -88,7 +88,11 @@ class LoginView extends React.Component { contentContainerStyle={styles.container} keyboardVerticalOffset={128} > - +