Skip to content

DarrylD/react-native-padlocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-natve-padlocker

Wanted to experiment ways to enter in a pin code.

demo

Install

yarn add react-native-padlocker

Demo on expo

https://expo.io/@darryld/padlocker-demo

Usage

<PadLocker
    correctPin={1111}
    backgroundColor="#21ce99"
    handleAfterLock={() => console.log('Unlocked')}
    handleFailedAttempt={() => console.log('failed attempt')}
    renderMainIcon={() => <Icon name="bowl" size={70} color="white" />}
    renderBackIcon={() => <Icon name="delete" size={30} color="white" />}
    renderAfterUnlock={() => (
        <FadeIn duration={1000}>
            <Body>...</Body>
        </FadeIn>
    )}
/>

Todo

  • add tests
  • option for different pin length
  • option for background element

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published