UNPKG

react-native-full-pin

Version:

React Native Full Pin is a component to use Pin In your apps, with buttons, input, functions all in the same place.

59 lines (43 loc) 1.46 kB
# react-native-full-pin Component to use Pin in your Apps, Easy to use, easy to customize and easy to manipulate. # How to install ```bash # Using npm npm install react-native-full-pin # Or Using Yarn yarn add react-native-full-pin ``` # Usage ```js import FullPin from "react-native-full-pin"; export default function App() { const [code, setCode] = useState([]); return ( <View style={styles.container}> <FullPin pin={{ code, pinLength: 4, onChange: (e) => setCode(e), }} /> </View> ); } ``` # Demo Some examples of using React Native Full Pin, with default styles and with personalized styles. <div styles="display: flex"> <img width="300px" src="https://user-images.githubusercontent.com/72455038/175178105-67445da3-906f-431d-884a-d63340d40fab.jpg" alt="Demo Without Styles - React Native Full Pin"/> <img width="300px" src="https://user-images.githubusercontent.com/72455038/175178217-9f74a53a-d4c6-4b28-a224-f6cc96aaa51b.jpg" alt="Demo With Styles - React Native Full Pin"/> </div> # Contributors <a href="https://github.com/mariovarela99/react-native-pin/graphs/contributors"> <h4>mariovarela99</h4> <img src="https://avatars.githubusercontent.com/u/72455038?s=400&u=9c0a89d3ba6eaa2eee272b1acc64573f33abe231&v=4?" width=100> </a> # How to contribute - Fork the Repo - Clone it - Make your changes - Make the Pull Request and let's see how it works.