diff --git a/src/pages/settings/AddSecondaryLoginPage.js b/src/pages/settings/AddSecondaryLoginPage.js index 2e0bf3a35a11..cf65b4b4ad65 100755 --- a/src/pages/settings/AddSecondaryLoginPage.js +++ b/src/pages/settings/AddSecondaryLoginPage.js @@ -72,6 +72,8 @@ class AddSecondaryLoginPage extends Component { this.formType = props.route.params.type; this.submitForm = this.submitForm.bind(this); this.validateForm = this.validateForm.bind(this); + + this.phoneNumberInputRef = null; } componentWillUnmount() { @@ -102,7 +104,12 @@ class AddSecondaryLoginPage extends Component { render() { return ( - + { + if (this.phoneNumberInputRef) { + this.phoneNumberInputRef.focus(); + } + }} + > this.phoneNumberInputRef = el} style={styles.textInput} value={this.state.login} onChangeText={login => this.setState({login})} - autoFocus keyboardType={this.formType === CONST.LOGIN_TYPE.PHONE ? CONST.KEYBOARD_TYPE.PHONE_PAD : undefined} returnKeyType="done"