Keyboard.removeListener is not a function for SearchBar
See original GitHub issueExplain what you did (Required)
Upgrade react native version from v0.63.4 to v0.65.1
Expected behavior (Required)
app should not crash
Describe the bug (Required)
App crashes after upgrading the version for SearchBar with platform=android
To Reproduce (Required)
Screenshots (Required) Example:
Your Environment (Required):
software | version |
---|---|
react-native-elements | 3.4.2 |
react-native | 0.65.1 |
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
react native - _reactNative.Keyboard.removeListener is not a ...
Now I started to get this exception while trying to navigate between screens: _reactNative.Keyboard.removeListener is not a function.
Read more >Keyboard.removeListener is not a function #2090 - GitHub
Hello I started getting this error after the last update of react native because the removeListener function was removed in the last update....
Read more >[Solved]-_reactNative.Keyboard.removeListener is not a ...
Coding example for the question _reactNative.Keyboard.removeListener is not a function-React Native.
Read more >SearchBar - React Native Elements
SearchBar. SearchBars are used to search or filter items. Use a SearchBar when the number of items directly impacts a user's ability to...
Read more >react-native Keyboard JavaScript Examples - ProgramCreek.com
This page shows JavaScript code examples of react-native Keyboard. ... removeListener(showEvent, onKeyboardShow); Keyboard.removeListener(hideEvent ...
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
Hey, sorry for my bad english, I got the same error after upgrade react-native to 0.65.1. I found the temporarly solution for this in this issue: https://github.com/FaridSafi/react-native-gifted-chat/issues/2090.
I believe which this library is not compatible with latest version of react native.
my solution was modify file SearchBar-android.js as next
I hope this will be fixed soon by the maintainers.
I also ran into this error. If anyone else is looking for a workaround, you can change platform to ‘default’