From c510214bbac7fc63c60b3129dbb4d2b8ac1c1423 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Mon, 19 Jun 2017 18:36:33 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/keyboard.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/releases/next/docs/keyboard.html b/releases/next/docs/keyboard.html index 4c8b020f280..d199283b78e 100644 --- a/releases/next/docs/keyboard.html +++ b/releases/next/docs/keyboard.html @@ -31,7 +31,9 @@ well as make changes to the keyboard, like dismissing it.

}

Methods #

static addListener(eventName, callback) #

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} eventName 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

Note that if you set android:windowSoftInputMode to adjustResize or adjustNothing, -only keyboardDidShow and keyboardDidHide events will available on Android.

@param {function} callback function to be called when the event fires.

static removeListener(eventName, callback) #

Removes a specific listener.

@param {string} eventName The nativeEvent is the string that identifies the event you're listening for. +only keyboardDidShow and keyboardDidHide events will be available on Android. +keyboardWillShow as well as keyboardWillHide are generally not available on Android +since there is no native corresponding event.

@param {function} callback function to be called when the event fires.

static removeListener(eventName, callback) #

Removes a specific listener.

@param {string} eventName The nativeEvent is the string that identifies the event you're listening for. @param {function} callback function to be called when the event fires.

static removeAllListeners(eventName) #

Removes all listeners for a specific event type.

@param {string} eventType The native event string listeners are watching which will be removed.

static dismiss() #

Dismisses the active keyboard and removes focus.

You can edit the content above on GitHub and send us a pull request!

← PrevNext →