Keyboard module to control keyboard events.
The Keyboard module allows you to listen for native events and react to them, as well as make changes to the keyboard, like dismissing it.
static addListener: (
) => EmitterSubscription;
This function then returns the reference to the listener.
|string||The string that identifies the event you're listening for. See the list below.|
|function||The function to be called when the event fires|
This can be any of the following:
Note that only
keyboardDidHideevents are available on Android. The events will not be fired when using Android 10 and under if your activity has
Dismisses the active keyboard and removes focus.
static scheduleLayoutAnimation(event: KeyboardEvent);
Useful for syncing TextInput (or other keyboard accessory view) size of position changes with keyboard movements.
static isVisible(): boolean;
Whether the keyboard is last known to be visible.
static metrics(): KeyboardMetrics | undefined;
Return the metrics of the soft-keyboard if visible.