Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behavior SmoothPincodeInput component in Modal component #95

Open
LemonLightyear opened this issue Jul 29, 2022 · 0 comments

Comments

@LemonLightyear
Copy link

When I tap the input box in my app user interface, it will be closed my modal. It only happens when I tap the input pin, other parts of the modal are okay.

Here is my code snipped

<Modal>
  <View>
       <SmoothPinCodeInput
                  editable={editableCode}
                  ref={pinInput}
                  cellSpacing={10}
                  cellSize={50}
                  codeLength={4}
                  cellStyle={errorMessage ? styles.textErrorInput : styles.pinTextInput}
                  textStyle={errorMessage ? styles.textErrorStyle : styles.textStyle}
                  value={code}
                  cellStyleFocused={{}}
                  onTextChange={code => this.setState({ code, errorMessage: null })}
                  onFulfill={this._checkCode}
         />
  <View>
</Modal>

checkCode function is for validation OTP matching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant