【发布时间】:2015-12-21 07:27:50
【问题描述】:
我定义了两个TextInput字段如下:
<TextInput
style = {styles.titleInput}
returnKeyType = {"next"}
autoFocus = {true}
placeholder = "Title" />
<TextInput
style = {styles.descriptionInput}
multiline = {true}
maxLength = {200}
placeholder = "Description" />
但是在按下键盘上的“下一步”按钮后,我的 react-native 应用程序并没有跳转到第二个 TextInput 字段。我怎样才能做到这一点?
谢谢!
【问题讨论】:
-
Mitch 的回答(目前是第三个)在 v0.42 上对我有用。
-
对于 React
v16.8.0或更高版本的人,我建议将@Eli Johnson 提供的答案放在底部。 React 已弃用以下解决方案中提供的ref的许多用途。
标签: ios react-native