You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This repository is no longer actively maintained. It has been extracted into two other packages to be more reusable: [react-native-pins](https://github.com/lukebrandonfarrell/react-native-pins) and [react-native-screen-keyboard](https://github.com/lukebrandonfarrell/react-native-screen-keyboard)**.
8
-
9
7
A highly interactive and customizable PIN code screen for React Native.
10
8
11
9
- Plug and play PIN screen with dozens of props (can be themed to suit your brand).
@@ -18,6 +16,7 @@ A highly interactive and customizable PIN code screen for React Native.
18
16
## Install
19
17
20
18
To get started install via npm:
19
+
21
20
```sh
22
21
npm install react-native-awesome-pin --save
23
22
```
@@ -30,11 +29,13 @@ The `<PinScreen />` will take up the full view. It is a plug and play component.
30
29
logo, tagline, background colour, callback function and start verifying PINs.
| onRef | string| No || onRef allows you to call the `throwError(message)` method. |
136
+
| keyDown | string| No || Callback function triggered when a key is pressed. Returns the current PIN value. |
137
+
| tagline | string| Yes | 'Enter your PIN' | Tagline which sits above the PINS. |
138
+
| logo | object| Yes || Logo to place at top of screen. |
139
+
| numberOfPins | number| Yes | 5 | Number of pins to render. |
140
+
| keyVibration | bool| Yes | true | Should vibration be enabled for key press. |
141
+
| shakeVibration | bool| Yes | true | Should vibration be enabled for shake. |
142
+
| headerBackgroundColor | string | Yes | #e2e2e2 | Header colour for the SafeAreaView. |
143
+
| footerBackgroundColor | string | Yes | #fff | Footer colour for the SafeAreaView. |
144
+
| ItemFooter | element| Yes || A footer component to render below the PinScreen. |
145
+
| containerStyle | object| Yes | See PinScreen.js | Style applied to the container. Background colour can be set here. |
146
+
| logoStyle | object| Yes || Style applied to your logo. |
147
+
| taglineStyle | object| Yes | See PinScreen.js | Style applied to the tagline. |
148
+
| pinContainerStyle | object| Yes | See PinInput.js | Style applied to PINS container. |
149
+
| pinStyle | object| Yes | See PinInput.js | Style applied to each circle PIN. |
150
+
| pinActiveStyle | object| Yes | See PinInput.js | Style applied to each circle PIN when it is active. |
151
+
| keyboardStyle | object| Yes | See PinKeyboard.js | Style applied to the keyboard. |
152
+
| keyboardDisabledStyle | object | Yes | See PinKeyboard.js | Style applied when the keyboard is disabled. |
153
+
| keyStyle | object| Yes | See PinKeyboard.js | Style applied to each key on the keyboard. |
154
+
| keyTextStyle | object| Yes | See PinKeyboard.js | Style applied to the text inside each key. |
155
+
| keyImageStyle | object| Yes | See PinKeyboard.js | Style applied to image in a key. If an image is passed. |
156
+
| errorStyle | object| Yes | See PinKeyboard.js | Style applied to popup error. Can set the background colour here. |
157
+
| errorTextStyle | object| Yes | See PinKeyboard.js | Style applied to the text inside the popup error. |
153
158
154
159
#### PinKeyboard
155
160
156
161
The `<PinKeyboard />` uses two arrays to allow you to set keys and define custom functions for each key. This is not the most fine-tune solution and will be upgraded
0 commit comments