React.useState('');
const [pass, setPass] = React.useState('')
const [inp1, setInp1] = React.useState('');
let ref_input2 = useRef();
let ref_input3 = useRef();
let ref_input4 = useRef();
let ref_input5 = useRef();
return (
<TextInput
onChangeText={text => setPass(text)}
keyboardType={'numeric'}
style={styles.inputText}
maxLength = {1}
underlineColorAndroid='rgba(0,0,0,0)'
numberOfLines={1}
onSubmitEditing={this.maxLength ? 1 :() => this.ref_input2.focus()}
/>
<TextInput
onChangeText={text => setPass(text)}
keyboardType={'numeric'}
maxLength = {1}
style={styles.inputText}
underlineColorAndroid='rgba(0,0,0,0)'
numberOfLines={1}
ref={ref_input2}
onSubmitEditing={this.maxLength?1:() => this.focusNextField('3')}
/>
У тебя слово лишнее в коде
Обсуждают сегодня