|
1 | | -# react-native-otp-text-input |
2 | | -A react native/expo package for splitted otp text inputs |
| 1 | +| | | | | | |
| 2 | +| --------------------------------------- | -------- | ---------- |---------- |---------- | |
| 3 | +| <a href="https://www.npmjs.com/package/react-native-text-input-otp"></a> | <a href="https://www.npmjs.com/package/react-native-text-input-otp"></a> | <a href="https://github.com/mmusaib/react-native-text-input-otp/stargazers"></a> | <a href="https://www.youtube.com/channel/UCSwIR2KBHiqiProH3Me8IZQ"></a> | <a href="https://www.npmjs.com/package/react-native-text-input-otp"></a> |
| 4 | + |
| 5 | +<h1 align="center"> |
| 6 | + 🏳️🌈 React Native OTP Text Input |
| 7 | +</h1> |
| 8 | + |
| 9 | +<div align="center"> |
| 10 | + |
| 11 | +🟢 Splitted OTP Text Input for ReactNative and Expo powered apps |
| 12 | + |
| 13 | +<a href="https://twitter.com/_mmusaib" target="_blank"></a> |
| 14 | +<img src="https://i.imgur.com/toxEFWe.png" width="500" /> |
| 15 | +</div> |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +<h4>Light Weight and <b>Robust</b> Splitted Text Input.</h4> |
| 20 | + |
| 21 | +- Design skeleton loading screen of your choice |
| 22 | +- Pass colors of your choice |
| 23 | +- Powered by Reanimated 3 |
| 24 | +- Make your apps professional in UI/UX |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +# Compatibility |
| 30 | + |
| 31 | + |
| 32 | +| iOS | Android | Expo | |
| 33 | +--------|---------|------| |
| 34 | +| ✅ | ✅ | ✅ | |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +# 🔌 Installation |
| 40 | + |
| 41 | +```sh |
| 42 | +$ npm install react-native-text-input-otp |
| 43 | + |
| 44 | +``` |
| 45 | + |
| 46 | +OR |
| 47 | + |
| 48 | +```sh |
| 49 | +$ yarn add react-native-text-input-otp |
| 50 | +``` |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | +# 😎 Displaying the otp input |
| 56 | +All you need is to just import the otp text input component and then pass the |
| 57 | +required props to display the splitted otp text input as shown in the code snippet below: |
| 58 | + |
| 59 | +```jsx |
| 60 | +import OtpTextInput from 'react-native-text-input-otp' |
| 61 | + |
| 62 | +const App = () => { |
| 63 | + |
| 64 | + return( |
| 65 | + |
| 66 | + ) |
| 67 | + |
| 68 | +}; |
| 69 | +``` |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | +For Live `Demo` [(Expo Snack)](https://snack.expo.dev/@mmusaib/react-native-skeleton-loading?platform=android) |
| 74 | + |
| 75 | +# ⭐ Props for the component |
| 76 | +| Name | Type | Description | |
| 77 | +| ---- | ----------- | ----------- | |
| 78 | +| background | hex color string | Hex color string for the background of loading component |
| 79 | +| highlight | hex color string | Hex color string for the highlight of loading component |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +# 💲 Would you like to support me? |
| 85 | + |
| 86 | +If you would like me come up with similar packages, buy me a cup of coffee to boost my energy. |
| 87 | +<br><br> |
| 88 | +[](https://paypal.me/mmusaib) |
| 89 | +<br><br> |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | +<!-- # ▶️ Watch Tutorial Video |
| 94 | +
|
| 95 | + [](https://www.youtube.com/watch?v=ZstelmTWhjw) --> |
| 96 | + |
| 97 | + |
| 98 | +<!-- For Live `Demo` [(Expo Snack)](https://snack.expo.dev/@mmusaib/react-native-stock-star-rating) |
| 99 | +
|
| 100 | +
|
| 101 | +
|
| 102 | +
|
| 103 | +
|
| 104 | +
|
| 105 | +
|
| 106 | +
|
| 107 | +
|
| 108 | +
|
0 commit comments