how to design react native OTP enter screen?

前端 未结 6 603
刺人心
刺人心 2021-01-12 13:34

I am new in react native design .Let me know how to achieve the screen shown below

is it necessary to use 4 TextInput or possible with one?

6条回答
  •  甜味超标
    2021-01-12 14:25

    You can use just one hidden TextInput element and attach an onChangeText function and fill values entered in a Text view (you can use four different text view of design requires it). Make sure to focus the TextInput on click of Text view if user click on it

提交回复
热议问题