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

Is there a "Enter PIN cancel" option I'm missing? #10

Open
ntbutler87 opened this issue Apr 8, 2024 · 0 comments
Open

Is there a "Enter PIN cancel" option I'm missing? #10

ntbutler87 opened this issue Apr 8, 2024 · 0 comments

Comments

@ntbutler87
Copy link

First of all - great component, 99% fits exactly what I'm after.

Is there a function that allows the user to cancel out of the PIN ENTER mode? In some similar PIN entry products, the "delete" button would either change to "cancel" if there's no current value for the entered pin, or there would be a specific cancel button that can be triggered to hide the PIN entry component - for example the Cancel button that is visible at the lower-right of the iOS lock screen.

Is there an existing function that would allow for this kind of operation in this component? There's the onSetCancel prop and the onEnter prop, but neither of these seem to be appropriate for if a user wants to simply quit out of the PIN entry screen - they either need to enter the correct PIN (to trigger the onEnter function), or the app would need to be in the SET to get the available onSetCancel option. I can see a possibility of changing the textOptions for the enter mode to {enter:{footerText:"Cancel"}} and using the onReset trigger, but that's obviously not ideal.

Cheers!

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