diff --git a/src/pages/settings/AddSecondaryLoginPage.js b/src/pages/settings/AddSecondaryLoginPage.js index 74594d6c83b8..cf65b4b4ad65 100755 --- a/src/pages/settings/AddSecondaryLoginPage.js +++ b/src/pages/settings/AddSecondaryLoginPage.js @@ -104,7 +104,12 @@ class AddSecondaryLoginPage extends Component { render() { return ( - this.phoneNumberInputRef.focus()}> + { + if (this.phoneNumberInputRef) { + this.phoneNumberInputRef.focus(); + } + }} + > this.phoneNumberInputRef = e} + ref={el => this.phoneNumberInputRef = el} style={styles.textInput} value={this.state.login} onChangeText={login => this.setState({login})}