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 authored Mar 27, 2017
1 parent 3b28644 commit b5df121
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/Components/Keyboard/Keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ let Keyboard = {
* - `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 b5df121

Please sign in to comment.