0Day Forums
React Native: How to select the next TextInput after pressing the "next" keyboard button? - Printable Version

+- 0Day Forums (https://zeroday.vip)
+-- Forum: Coding (https://zeroday.vip/Forum-Coding)
+--- Forum: React Native (https://zeroday.vip/Forum-React-Native)
+--- Thread: React Native: How to select the next TextInput after pressing the "next" keyboard button? (/Thread-React-Native-How-to-select-the-next-TextInput-after-pressing-the-quot-next-quot-keyboard-button)



React Native: How to select the next TextInput after pressing the "next" keyboard button? - tsunamic34487 - 07-19-2023

I defined two TextInput fields as follows:

<TextInput
style = {styles.titleInput}
returnKeyType = {"next"}
autoFocus = {true}
placeholder = "Title" />
<TextInput
style = {styles.descriptionInput}
multiline = {true}
maxLength = {200}
placeholder = "Description" />

But after pressing the "next" button on my keyboard, my react-native app isn't jumping to the second TextInput field. How can I achieve that?

Thanks!