1.1.0 • Published 7 years ago

react-native-controlled-keyboard v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

react-native-controlled-keyboard

A fully controllable keyboard with many listeners and callbacks

Install

npm install react-native-controlled-keyboard

## integrate it in your appear

import ControlledKeyboard from 'react-native-controlled-keyboard'

...

render() {
  return (
    <ControlledKeyboard ... />
  );
}

## Props tab

props nameprops typedesc
onKeyPressed(text: String) => {}each time a key as been pressed
onShow() => {}each time the keyboard appear
onHide() => {}each time the keyboard disappear
onSubmit() => {}when return key is pressed
keyboardTypeStringlook for TextInput.propTypes.keyboardType
keyboardAppearanceStringlook for TextInput.propTypes.keyboardAppearance
returnKeyTypeStringlook for TextInput.propTypes.returnKeyType

## method tab

methodreturndesc
show()Booleanshow the keyboard, return false if failed
hide()Booleanhide the keyboard, return false if failed
isVisible()Booleanreturn true if keyboard is on the screen