1.0.7 • Published 4 years ago

smiledev-react-native-on-screen-keyboard v1.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

React Native On-screen Keyboard

Installation

npm i @junctiontv/react-native-on-screen-keyboard

Usage

import Keyboard from "@junctiontv/react-native-on-screen-keyboard";
...

<Keyboard
  title={title}
  textInput={textInputRef}
  onInput={this.handleInput}
  inputType={inputType}
  keyboardContainerStyle={styles.keyboardContainer}
  keyboardTitleStyle={styles.keyboardTitle}
  keyboardButtonContainerStyle={styles.keyboardButtonContainer}
  keyboardButtonTextStyle={styles.keyboardButtonText}
  keyboardButtonTextPressStyle={styles.keyboardButtonTextPress}
  keyboardButtonStyle={styles.keyboardButton}
  keyboardButtonPressStyle={styles.keyboardButtonPress}
  keyboardButtonWidthMultiplier={{ "2": 2.05, "3": 3.1, "4": 4.15 }}
/>
PropTypeOptionalDescription
titleString:heavy_check_mark:sets the title of the keyboard
textInputReact Ref:x:the reference of the TextInput which is to be attached
onInputFunction:x:callback to set the value of the text from the keyboard
inputTypeString:x:sets the input type of the keyboard. Currently only textEmailAddress, textPassword and textSearch are supported
keyboardContainerStyleObject:heavy_check_mark:style to set the style for the keyboard container
keyboardTitleStyleObject:heavy_check_mark:style to set the style for the keyboard title
keyboardButtonContainerStyleObject:heavy_check_mark:style to set the style for the keyboard buttons container
keyboardButtonTextStyleObject:heavy_check_mark:style to set the style for the keyboard buttons text in unpressed state
keyboardButtonTextPressStyleObject:heavy_check_mark:style to set the style for the keyboard buttons text in pressed state
keyboardButtonStyleObject:heavy_check_mark:style to set the style for the keyboard buttons in unpressed state
keyboardButtonPressStyleObject:heavy_check_mark:style to set the style for the keyboard buttons in pressed state
keyboardButtonWidthMultiplierObject:heavy_check_mark:sets the amount of multiplier of the keys with the longer widths

Contributing

All contributions including new features, requests, bug fixes are open to everyone. Feel free to open a PR!

License

React Native On-screen Keyboard is MIT licensed.