Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard module is not listening keyboardWillShow on android #15387

Closed
agrcrobles opened this issue Aug 6, 2017 · 2 comments
Closed

Keyboard module is not listening keyboardWillShow on android #15387

agrcrobles opened this issue Aug 6, 2017 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@agrcrobles
Copy link
Contributor

agrcrobles commented Aug 6, 2017

Is this a bug report?

yes

Environment

  1. react-native -v: latest
  2. platform: android

Steps to Reproduce

The following code on componentWillMount works on ios but doesn't work in android

this.keyboardWillShowListener = Keyboard.addListener(
  "keyboardWillShow",
  () => console.log("do something")
);

Expected Behavior

keyboardWillShow native event is triggered on android

Actual Behavior

It doesn't trigger so I had to use keyboardDidShow event instead.

Reproducible Demo

https://snack.expo.io/r1eRxoNvb

@agrcrobles
Copy link
Contributor Author

upps,
Reading at the docs again I found that keyboardWillShow is not available on Android since there is no native corresponding event.

https://facebook.github.io/react-native/docs/keyboard.html

@agrcrobles
Copy link
Contributor Author

Closed #15387

@facebook facebook locked as resolved and limited conversation to collaborators Aug 6, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants