[英]How to open Android and IOS keyboard in React Native without pressing the TextInput
[英]React Native android: How to select the next TextInput after pressing the “actionNext” keyboard button?
我对Android使用react native,我想用像这里的“next”选项编辑一堆TextInput(ios版本): https : //github.com/facebook/react-native/pull/2149#issuecomment-129262565
我试过了:
<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"
有没有办法做到这一点?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.