question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keyboard.removeListener is not a function for SearchBar

See original GitHub issue

Explain 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: Screenshot_1632145766

Your Environment (Required):

software version
react-native-elements 3.4.2
react-native 0.65.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
ggpereiracommented, Sep 22, 2021

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

Captura de tela 2021-09-22 162944

I hope this will be fixed soon by the maintainers.

1reaction
pmulholland42commented, Oct 27, 2021

I also ran into this error. If anyone else is looking for a workaround, you can change platform to ‘default’

Read more comments on GitHub >

github_iconTop 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 >

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