how to design react native OTP enter screen?

praj picture praj · Nov 27, 2017 · Viewed 13.8k times · Source

I am new in react native design .Let me know how to achieve the screen shown belowenter image description here

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

Answer

Chethan N picture Chethan N · Nov 27, 2017

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