Skip to content

Commit

Permalink
Update Keyboard.js
Browse files Browse the repository at this point in the history
According to this issue: facebook#3468 , only `keyboardDidShow`and `keyboardDidHide` events are available on android. 

I think this information should be displayed in the documentation since default `android:windowSoftInputMode` is `adjustResize`.
  • Loading branch information
GlebkaF committed Mar 27, 2017
1 parent 3b28644 commit ba78613
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Libraries/Components/Keyboard/Keyboard.js
Expand Up @@ -98,7 +98,10 @@ let Keyboard = {
* - `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.
*/
addListener(eventName: KeyboardEventName, callback: KeyboardEventListener) {
Expand Down

0 comments on commit ba78613

Please sign in to comment.