小编and*_*nes的帖子

React Native:如何在按下"下一个"键盘按钮后选择下一个TextInput?

我定义了两个TextInput字段,如下所示:

<TextInput 
   style = {styles.titleInput}
   returnKeyType = {"next"}
   autoFocus = {true}
   placeholder = "Title" />
<TextInput
   style = {styles.descriptionInput}          
   multiline = {true}
   maxLength = {200}
   placeholder = "Description" />
Run Code Online (Sandbox Code Playgroud)

但是在按下键盘上的"下一步"按钮后,我的react-native应用程序没有跳转到第二个TextInput字段.我怎样才能做到这一点?

谢谢!

ios react-native

154
推荐指数
13
解决办法
13万
查看次数

标签 统计

ios ×1

react-native ×1