returnKeyType = “next” issue in react native

前端 未结 1 366
逝去的感伤
逝去的感伤 2021-01-12 15:14

I am using returnKeyType = \"next\" in TextInput component, but it is working like returnKeyType=\"go\" instead of moving to the next textinput fie

1条回答
  •  一向
    一向 (楼主)
    2021-01-12 15:39

    You need to set focus on the next textfield using the reference like this:

    
        this.secondTextInput.focus()}/>
        this.secondTextInput = input}/> 
    
    

    0 讨论(0)
提交回复
热议问题