Skip to content

Conversation

@Benelini
Copy link

@Benelini Benelini commented May 9, 2025

Added functionality so that this package can be used with gorhom/react-native-bottom-sheet. This mostly solves keyboard behaviour when the otp entry is used in the bottom sheet, otherwise its very tricky.

I also updated the types accordingly since RN 79 requires React 19 types.

@anday013
Copy link
Owner

@Benelini Hi, firstly thank you for your efforts. What about the people who're not using this lib with any bottom sheet? Is it right to bind everyone to have an extra dependency?

@akuul
Copy link
Contributor

akuul commented May 30, 2025

This is wrong. The package shouldn't depend on gorhom nor on RNGH

@anday013
Copy link
Owner

What you can do is to expose a prop for custom input rendering. Ex:

<OtpInput
...
customTextInput={GorhomTextInput}
...
/>

@anday013 anday013 closed this Sep 10, 2025
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

Successfully merging this pull request may close these issues.

3 participants