From d69c85f8788ecf3bd14aad36dc75878d5ebe2e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Wed, 5 Apr 2017 15:19:01 -0700 Subject: [PATCH] Update Keyboard.js Summary: What existing problem does the pull request solve? According to this issue: https://github.com/facebook/react-native/issues/3468 , only `keyboardDidShow`and `keyboardDidHide` events are available on android at this moment. I think this information should be displayed in the documentation since default `android:windowSoftInputMode` is `adjustResize`. Closes https://github.com/facebook/react-native/pull/13155 Differential Revision: D4795828 Pulled By: hramos fbshipit-source-id: 2c114f3040808a5cc3cdeb29b2067877df353620 --- Libraries/Components/Keyboard/Keyboard.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/Components/Keyboard/Keyboard.js b/Libraries/Components/Keyboard/Keyboard.js index 8ec70bb68fc..9e936e6d780 100644 --- a/Libraries/Components/Keyboard/Keyboard.js +++ b/Libraries/Components/Keyboard/Keyboard.js @@ -99,6 +99,9 @@ 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) {