Android and iOS crashed when use two OTPInput view together with 4 and 6 numberOfInputs.
Closed this issue · 3 comments
Parth-9711 commented
ice-chillios commented
@Parth-9711 could you share code? Because I can’t debug without any background.
Parth-9711 commented
{this.state.isFourDigit == true ? (<OtpInputs
ref={this.otpRef}
selectTextOnFocus={false}
focusedBorderColor={CommonColor.bgBorderGray}
keyboardType='number-pad'
style={{ backgroundColor: CommonColor.bgGray, borderColor: CommonColor.bgBorderGray, justifyContent: 'center' }}
handleChange={code => this.mPassCodeData.mPassCodeValue = code}
**numberOfInputs={4}**
/>
) : (<OtpInputs
keyboardType='number-pad'
ref={this.otpRef}
style={{ backgroundColor: CommonColor.bgGray, borderColor: CommonColor.bgBorderGray, alignSelf: 'center' }}
handleChange={code => this.mPassCodeData.mPassCodeValue = code}
**numberOfInputs={6}**
/>
)}
See this, i have two view with different numberofInputs but not working.
ice-chillios commented
@Parth-9711 Sorry but still I couldn't reproduce this bug. Checkout @next
version and give me a shout if this is still and issue.
I'm also curious if this is not related to passing same ref={this.otpRef}
to 2 components.