3
我用反應原生的Android,我想用 「下一個」 選項編輯一堆的TextInput像這裏(IOS版本): https://github.com/facebook/react-native/pull/2149#issuecomment-129262565React Native android:如何在按下「actionNext」鍵盤按鈕後選擇下一個TextInput?
我想:
<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" />
但鍵盤是關閉和開放,這很煩人。
從https://stackoverflow.com/a/4999372/1456487據我瞭解,在本機Android應用我會用:
android:imeOptions="actionNext"
有沒有辦法做到這一點?