Keyboard component to control keyboard events.
The Keyboard component allows you to listen for native events and react to them, as well as make changes to the keyboard, like dismissing it.
The addListener function connects a JavaScript function to an identified native
keyboard notification event.
This function then returns the reference to the listener.
@param {string} nativeEvent The nativeEvent is the string that identifies the event you're listening for. This
can be any of the following:
- keyboardWillShow
- keyboardDidShow
- keyboardWillHide
- keyboardDidHide
- keyboardWillChangeFrame
- keyboardDidChangeFrame
@param {function} jsFunction function to be called when the event fires.
Removes all listeners for a specific event type.
@param {string} eventType The native event string listeners are watching which will be removed.
Removes a specific subscription.
@param {EmitterSubscription} subscription The subscription emitter to be removed.
Dismisses the active keyboard and removes focus.
You can edit the content above on GitHub and send us a pull request!