All Projects â†’ lukebrandonfarrell â†’ react-native-screen-keyboard

lukebrandonfarrell / react-native-screen-keyboard

Licence: other
On-screen keyboard with customisable keys and tactile / UI feedback 📱

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to react-native-screen-keyboard

react-native-awesome-pin
A highly interactive and customisable PIN code screen for React Native.
Stars: ✭ 28 (+27.27%)
Mutual labels:  keyboard, pins, pin-code
Spalert
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.
Stars: ✭ 1,014 (+4509.09%)
Mutual labels:  native, feedback
mac-terminal-shortcuts
Useful and common terminal shortcuts for macOS
Stars: ✭ 39 (+77.27%)
Mutual labels:  keyboard
snake
A stylised graphical tool for configuring and controlling Razer devices on Linux
Stars: ✭ 52 (+136.36%)
Mutual labels:  keyboard
wombag
Wombag is the alternative, lightweight backend for your Wallabag apps. Wombag supports the Wallabag API.
Stars: ✭ 42 (+90.91%)
Mutual labels:  native
regln
Windows Rregistry Linking Utility
Stars: ✭ 38 (+72.73%)
Mutual labels:  native
keyboard mouse emulate on raspberry
Bluetooth Keyboard Mouse Emulator on Raspberry Pi
Stars: ✭ 230 (+945.45%)
Mutual labels:  keyboard
titanium-calendar
An easy to use iOS modal calendar for selecting dates. Based on the awesome PDTSimpleCalendar library.
Stars: ✭ 15 (-31.82%)
Mutual labels:  native
node-webrtc
🔌 WebRTC bindings for Node, written according to the W3C specification.
Stars: ✭ 23 (+4.55%)
Mutual labels:  native
system-76-keyboards
Rainbow / CPU monitor for system76 colored keyboards
Stars: ✭ 37 (+68.18%)
Mutual labels:  keyboard
wallet
DeFiChain Wallet. The DeFi Blockchain Light Wallet for iOS, Android & Web. + Desktop Coming Soon
Stars: ✭ 112 (+409.09%)
Mutual labels:  native
titanium-firebase-analytics
Use the Firebase Analytics SDK in Axway Titanium 🚀
Stars: ✭ 33 (+50%)
Mutual labels:  native
vue-focus-keyboard
A keyboard component for Vue. Start to write immediately. No input element definition. Plug and play!
Stars: ✭ 63 (+186.36%)
Mutual labels:  keyboard
Kimiko
Build-Guide for the Kimiko Split-Keyboard pcb.
Stars: ✭ 34 (+54.55%)
Mutual labels:  keyboard
hidstream
Streaming HID events in Node.js
Stars: ✭ 52 (+136.36%)
Mutual labels:  keyboard
unigem-objective-c
Unicode Gems, a Mac app, an iOS app, and an iOS keyboard for letter-like unicode.
Stars: ✭ 22 (+0%)
Mutual labels:  keyboard
use-keyboard-shortcut
A custom hook that allows adding keyboard shortcuts to React applications
Stars: ✭ 41 (+86.36%)
Mutual labels:  keyboard
react-native-simple-download-manager
A react native module to schedule downloads on native download manager
Stars: ✭ 35 (+59.09%)
Mutual labels:  native
MarkdownView
Native markdown rendering on top of Xamarin.Forms & Markdig.
Stars: ✭ 126 (+472.73%)
Mutual labels:  native
ck550-macos
MacOS effect control SW for a CoolMaster CK550 & CK530 Keyboard (US Layout).
Stars: ✭ 14 (-36.36%)
Mutual labels:  keyboard

react-native-screen-keyboard

All Contributors

npm npm licence npm downloads


Install

To get started install via npm:

 npm install react-native-screen-keyboard

Usage

Import:

 import { VirtualKeyboard } from 'react-native-screen-keyboard';

Then add it to your code:

<VirtualKeyboard
    onRef={ref => (this.keyboard = ref)}
    keyDown={this.keyDown.bind(this)}
/>

// Callback function which receives the key pressed
keyDown(key){
   // Key pressed
}

The back and custom key will pass a sting, either "back" or "custom" to the keyDown callback.

The <VirtualKeyboard /> also has a number of functions which can be triggered through refs.

  • back() this will execute the back action to delete one character.
  • setText(text) this will set the keyboard text to the given value.
  • displayMessage(message) this will create a popup above the keyboard displaying the given a message. The style of the popup can be customized through props.
  • clearMessage() this will clear the keyboard message dialog.
  • enable() this will enable the keyboard for input.
  • disable() this will disable the keyboard.

VirtualKeyboard

The <VirtualKeyboard /> uses two arrays to allow you to set keys and define custom functions for each key.

Prop Type Optional Default Description
onRef any Yes onRef allows you to call the throwError(message) method.
onKeyDown function Yes Callback function triggered when a key is pressed. Returns the key value.
onChange function Yes Callback function triggered when a key is pressed. Returns the full string.
onCustomKey function Yes Callback function triggered when custom left button is pressed, use with onChange
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 project.
keyboard array Yes See VirtualKeyboard.js 4 x 3 matrix containing the value for each key. See VirtualKeyboard.js.
keyboardFunc array Yes See VirtualKeyboard.js 4 x 3 matrix containing custom functions for each key. Pass null for no function.
keyboardCustomKeyImage number Yes null Image for the custom key (bottom left key)
keyDisabled array Yes See VirtualKeyboard.js 4 x 3 matrix containing the disabled value for each key. See VirtualKeyboard.js.
keyboardMessageDisplayTime number Yes 3000 Time in milliseconds for the message dialog to automatically clear.
vibration bool Yes false Key / Tactile vibration enabled
keyboardStyle object Yes See VirtualKeyboard.js Style applied to the keyboard.
keyboardDisabledStyle object Yes See VirtualKeyboard.js Style applied when the keyboard is disabled.
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.
keyStyle object Yes See VirtualKeyboard.js Style applied to each key on the keyboard.
keyTextStyle object Yes See VirtualKeyboard.js Style applied to the text inside each key.
keyImageStyle object Yes See VirtualKeyboard.js Style applied to image in a key. If an image is passed.
messageStyle object Yes See VirtualKeyboard.js Style applied to popup error. Can set the background colour here.
messageTextStyle object Yes See VirtualKeyboard.js Style applied to the text inside the popup error.
messageTestID string Yes "MessageContainer" TestID belonging to the view component of the popup error.
messageTextTestID string Yes "Message" TestID belonging to the text component inside the popup error.

Contributing

If you want to issue a PR, go ahead ;)

License

This project is licensed under the MIT License

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Luke Brandon Farrell
Luke Brandon Farrell

💻 📖 🚇
Aike van den Brink
Aike van den Brink

🔣 💻 📖
Andy Phillipson
Andy Phillipson

💻 📖
Leonardo BALLAND
Leonardo BALLAND

💻 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].