Skip to content

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

@ntbutler87

Description

@ntbutler87

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions