React Native android: How to select the next TextInput after pressing the "actionNext" key?

I am using native reaction for Android and I want to edit a bunch of TextInput with the following parameter, like here (ios version): https://github.com/facebook/react-native/pull/2149#issuecomment-129262565

enter image description here

I tried:

<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" />

But the keyboard is closed and open, and it is annoying.

from qaru.site/questions/142266 / ... I understand that in your own applications for Android, I would use:

android:imeOptions="actionNext"

Is there any way to do this?

+4
source share
1 answer
+3

Source: https://habr.com/ru/post/1625343/


All Articles