react-native-otp-textinput
react-native-otp-textinput copied to clipboard
Autofoucs is not working
Autofoucs is not working correct. it is showing in last cell.
Index.js (Modify)
TextInputs.push( <TextInput ref={(e) => { this.inputs[i] = e; }} key={i} autoCorrect={false} keyboardType={keyboardType} autoFocus={i==0?true:false} value={otpText[i] || ''} style={inputStyle} maxLength={this.props.inputCellLength} onFocus={() => this.onInputFocus(i)} onChangeText={(text) => this.onTextChange(text, i)} multiline={false} onKeyPress={(e) => this.onKeyPress(e, i)} {...textInputProps} /> );
Latest release contains fix for this, so closing this.