We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
yes
react-native -v
platform
The following code on componentWillMount works on ios but doesn't work in android
componentWillMount
this.keyboardWillShowListener = Keyboard.addListener( "keyboardWillShow", () => console.log("do something") );
keyboardWillShow native event is triggered on android
keyboardWillShow
It doesn't trigger so I had to use keyboardDidShow event instead.
keyboardDidShow
https://snack.expo.io/r1eRxoNvb
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
Closed #15387
No branches or pull requests
Is this a bug report?
yes
Environment
react-native -v
: latestplatform
: androidSteps to Reproduce
The following code on
componentWillMount
works on ios but doesn't work in androidExpected Behavior
keyboardWillShow
native event is triggered on androidActual Behavior
It doesn't trigger so I had to use
keyboardDidShow
event instead.Reproducible Demo
https://snack.expo.io/r1eRxoNvb
The text was updated successfully, but these errors were encountered: