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
feat(keyboard): Add back key customization feature (#35)
* feat: add new prop keyboardCustomBackKey to handle custom <Element />, fix TextInputPropTypes style prop for keyTextStyle
* feat: add doc for new prop keyboardCustomBackKey
| onRef | any | Yes || onRef allows you to call the `throwError(message)` method. |
58
-
| onKeyDown | function | Yes || Callback function triggered when a key is pressed. Returns the key value. |
59
-
| onChange | function | Yes || Callback function triggered when a key is pressed. Returns the full string. |
60
-
| onCustomKey | function | Yes || Callback function triggered when custom left button is pressed, use with `onChange`|
61
-
| onPressFunction | string | Yes | onPressIn | Determines which function to call when the user pressed a key. Could be one of the following three functions: `onPress`, `onPressIn` or `onPressOut`. For an explanation how the functions work take a look at the GitHub page from the [react-native-material-ripple](https://github.com/n4kz/react-native-material-ripple#properties) project.
62
-
| keyboard | array | Yes | See VirtualKeyboard.js | 4 x 3 matrix containing the value for each key. See VirtualKeyboard.js. |
63
-
| keyboardFunc | array | Yes | See VirtualKeyboard.js | 4 x 3 matrix containing custom functions for each key. Pass null for no function. |
64
-
| keyboardCustomKeyImage | number | Yes | null | Image for the custom key (bottom left key) |
65
-
| keyDisabled | array | Yes | See VirtualKeyboard.js | 4 x 3 matrix containing the disabled value for each key. See VirtualKeyboard.js. |
66
-
| keyboardMessageDisplayTime | number | Yes | 3000 | Time in milliseconds for the message dialog to automatically clear. |
| keyboardStyle | object | Yes | See VirtualKeyboard.js | Style applied to the keyboard. |
69
-
| keyboardDisabledStyle | object | Yes | See VirtualKeyboard.js | Style applied when the keyboard is disabled. |
70
-
| keyCustomStyle | array | Yes | See VirtualKeyboard.js | 4 x 3 matrix containing a custom style for each key. Pass null for default style or to use keyStyle as an override. |
71
-
| keyStyle | object | Yes | See VirtualKeyboard.js | Style applied to each key on the keyboard. |
72
-
| keyTextStyle | object | Yes | See VirtualKeyboard.js | Style applied to the text inside each key. |
73
-
| keyImageStyle | object | Yes | See VirtualKeyboard.js | Style applied to image in a key. If an image is passed. |
74
-
| messageStyle | object | Yes | See VirtualKeyboard.js | Style applied to popup error. Can set the background colour here. |
75
-
| messageTextStyle| object | Yes | See VirtualKeyboard.js | Style applied to the text inside the popup error.
76
-
| messageTestID| string | Yes | "MessageContainer" | TestID belonging to the view component of the popup error.
77
-
| messageTextTestID| string | Yes | "Message" | TestID belonging to the text component inside the popup error.
| onRef | any | Yes || onRef allows you to call the `throwError(message)` method. |
58
+
| onKeyDown | function | Yes || Callback function triggered when a key is pressed. Returns the key value. |
59
+
| onChange | function | Yes || Callback function triggered when a key is pressed. Returns the full string. |
60
+
| onCustomKey | function | Yes || Callback function triggered when custom left button is pressed, use with `onChange`|
61
+
| onPressFunction | string | Yes | onPressIn | Determines which function to call when the user pressed a key. Could be one of the following three functions: `onPress`, `onPressIn` or `onPressOut`. For an explanation how the functions work take a look at the GitHub page from the [react-native-material-ripple](https://github.com/n4kz/react-native-material-ripple#properties) project. |
62
+
| keyboard | array | Yes | See VirtualKeyboard.js | 4 x 3 matrix containing the value for each key. See VirtualKeyboard.js. |
63
+
| keyboardFunc | array | Yes | See VirtualKeyboard.js | 4 x 3 matrix containing custom functions for each key. Pass null for no function. |
64
+
| keyboardCustomKeyImage | number | Yes | null | Image for the custom key (bottom left key) |
65
+
| keyboardCustomBackKey | element | Yes | backAsset | Element for the back key (bottom right key) |
66
+
| keyDisabled | array | Yes | See VirtualKeyboard.js | 4 x 3 matrix containing the disabled value for each key. See VirtualKeyboard.js. |
67
+
| keyboardMessageDisplayTime | number | Yes | 3000 | Time in milliseconds for the message dialog to automatically clear. |
| keyboardStyle | object | Yes | See VirtualKeyboard.js | Style applied to the keyboard. |
70
+
| keyboardDisabledStyle | object | Yes | See VirtualKeyboard.js | Style applied when the keyboard is disabled. |
71
+
| keyCustomStyle | array | Yes | See VirtualKeyboard.js | 4 x 3 matrix containing a custom style for each key. Pass null for default style or to use keyStyle as an override. |
72
+
| keyStyle | object | Yes | See VirtualKeyboard.js | Style applied to each key on the keyboard. |
73
+
| keyTextStyle | object | Yes | See VirtualKeyboard.js | Style applied to the text inside each key. |
74
+
| keyImageStyle | object | Yes | See VirtualKeyboard.js | Style applied to image in a key. If an image is passed. |
75
+
| messageStyle | object | Yes | See VirtualKeyboard.js | Style applied to popup error. Can set the background colour here. |
76
+
| messageTextStyle | object | Yes | See VirtualKeyboard.js | Style applied to the text inside the popup error. |
77
+
| messageTestID | string | Yes | "MessageContainer" | TestID belonging to the view component of the popup error. |
78
+
| messageTextTestID | string | Yes | "Message" | TestID belonging to the text component inside the popup error. |
78
79
79
80
## Contributing
80
81
@@ -108,4 +109,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
108
109
109
110
<!-- ALL-CONTRIBUTORS-LIST:END -->
110
111
111
-
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
112
+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
0 commit comments