In the older react-native versions the following code used to work. But Now in v0.45.1
I get an error that SecondInput.focus
is not a function.
<TextInput
style = {styles.titleInput}
returnKeyType = {"next"}
autoFocus = {true}
placeholder = "Title"
onSubmitEditing={(event) => {
this.refs.SecondInput.focus();
}}
/>
<TextInput
ref='SecondInput'
style = {styles.descriptionInput}
multiline = {true}
maxLength = {200}
placeholder = "Description" />
UPDATE: The problem seems to be Redux-form.