From e75b0e51d9e78963a934ae8e80b8c6035588f58e Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Sun, 28 Oct 2018 22:43:48 +0100 Subject: [PATCH] show Continue if an email is already set upon return (#347) --- app/src/page/firstRun/view.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/page/firstRun/view.js b/app/src/page/firstRun/view.js index 36c6b4f6..f169cbde 100644 --- a/app/src/page/firstRun/view.js +++ b/app/src/page/firstRun/view.js @@ -152,6 +152,13 @@ class FirstRunScreen extends React.PureComponent { } } + onEmailViewLayout = () => { + this.setState({ showBottomContainer: true }); + AsyncStorage.getItem('firstRunEmail').then(email => { + this.setState({ showSkip: !email || email.trim().length === 0 }); + }); + } + render() { const { authenticating, @@ -171,7 +178,7 @@ class FirstRunScreen extends React.PureComponent { authToken={authToken} generateAuthToken={generateAuthToken} onEmailChanged={this.onEmailChanged} - onEmailViewLayout={() => this.setState({ showBottomContainer: true, showSkip: true })} />); + onEmailViewLayout={this.onEmailViewLayout} />); } return (