Keyboard events not working on Android
See original GitHub issueRN 0.36, Samsung Galaxy S6 running Android 6.0.1.
componentDidMount() {
this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this._keyboardDidShow);
this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this._keyboardDidHide);
}
Logging in those methods, I can see that they are called on iOS, but not Android. I’ve read all the other issue threads regarding this but most of them are old at this point. I’ve added android:windowSoftInputMode="adjustResize"
to my manifest. What am I missing?
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (1 by maintainers)
Top Results From Across the Web
keyPress event not firing in Android mobile - Stack Overflow
I am using backbone,marionette for my Application.I used same code for both desktop and mobile but keypress not working in mobile .I made...
Read more >Key events don't work properly on Android Chrome ... - GitHub
I've been trying substance (latest dev), and noticed that the key events or something aren't properly firing on android chrome, which causes ...
Read more >Handle keyboard actions - Android Developers
Handle single key events. To handle an individual key press, implement onKeyDown() or onKeyUp() , as appropriate. Usually, you use ...
Read more >keydown and keyup events do not have proper keyCode (it's ...
Steps to reproduce: 1. Load the attached HTML file in Chrome for Android. 2. Click on the input element. 3.
Read more >Javascript to detect Enter key press in Mobile App | OutSystems
For simply detecting the "enter" key it seems that it is a bit simpler. The Input Widget Event property, when set to onkeyup...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i still cannot get the event working on RN42,
Still an issue with react-native 0.50.0, is this being worked on? Can this be reopened?