Git Product home page Git Product logo

react-native-pin-code's People

Contributors

ajayesivan avatar anhnch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react-native-pin-code's Issues

Add ability to display key positions randomly

Description:

Currently, the PinCode component displays the PIN entry key positions in ascending order. It would be useful to be able to display locations randomly, making it harder for hackers to guess the PIN.

Proposal:

Add a new randomPositions prop to the PinCode component. This prop should be a boolean which, when set to true, displays the PIN entry key positions randomly.

How are we supposed to get the PIN ? It's keeps erroring out and resetting each time

I don't quite understand how this component works even after reading the docs countless times ? Each time I enter a pin I always get an error text message ("wrong pin") and the input gets reset. I would like to send the pin the user enters whether right or wrong to my server to verify, but the onEnter method doesn't trigger unless "it's the right pin" ??? so how do I go about this ?

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

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.