keyboardWillShow not triggered in Android

See original GitHub issue

I am registering for keyboardWillShow like this:

this.addListenerOn(RCTDeviceEventEmitter, 'keyboardWillShow', this.updateKeyboardSpace);

This works fine in iOS, but in Android it does not trigger the event as expected. keyboardDidShow does work in Android.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:10
  • Comments:45 (7 by maintainers)

github_iconTop GitHub Comments

47reactions
zoharlevincommented, Feb 24, 2016

ok, i somehow missed this, so… for anybody who was confused (like me 😃) i can confirm that keyboardWillShow + keyboardWillHide don’t work on android but keyboardDidShow and keyboardDidHide do work on android.

thanks @skv-headless

34reactions
seque1990commented, Jan 21, 2017

Still not working for keyboardWillShow and keyboardWillHide

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native DeviceEventEmitter keyboardWillShow stopped ...
This seems to be handled by the Keyboard component now, which uses native libraries. For iOS it is defined here, the event names...
Read more >
keyboardWillShow doesn't be called on android? - C++
i want to move CCTextFieldTTF up when soft keyboard will show in CCIMEDelegate::keyboardWillShow, but i found it doesn't be called onĀ ...
Read more >
Keyboard module is not listening keyboardWillShow on android
15387: Keyboard module is not listening keyboardWillShow on android. https://github.com/facebook/react-native/issues/15387.
Read more >
Keyboard - React Native
keyboardWillShow as well as keyboardWillHide are generally not available on Android since there is no native corresponding event. removeListenerĀ ...
Read more >
Keyboard - React Native
keyboardWillShow as well as keyboardWillHide are generally not available on Android since there is no native corresponding event.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found