You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using tabs generates a runtime fatal error when certain scenes are opened
Steps to reproduce
Setup a rect-native project using the indicated versions
Use Tabs
Attempting to open certain scenes causes a fatal with the following error mesage:
ERROR TypeError: _reactNative.Keyboard.removeListener is not a function. (In '_reactNative.Keyboard.removeListener('keyboardDidShow', this._handleKeyboardShow)', '_reactNative.Keyboard.removeListener' is undefined)
This error is located at:
in NavigationContainer (at Router.js:97)
in App (at Router.js:122)
...
I can't pinpoint what specifically makes some scenes to trigger this error while others don't but the reason is pretty obvious:
I know it is a problem with the tabs package but the fact that the current stable version of react-native-router-flux depends on it makes this a problem for users of react-native-router-flux
I don't see any solution other than patching react-navigation/tabs, but their repo has been archived, so I'm hesitant about going that route just for a temporary fix that will never make it to their mainline.
If anyone has run into this and has any suggested workaround or working patch, I'd really appreciate knowing what you did.
Version
Tell us which versions you are using:
Expected behaviour
Using Tabs works
Actual behaviour
Using tabs generates a runtime fatal error when certain scenes are opened
Steps to reproduce
I can't pinpoint what specifically makes some scenes to trigger this error while others don't but the reason is pretty obvious:
From RN v0.65.0 changelog:
https://github.com/react-native-community/releases/blob/master/CHANGELOG.md#v0650
https://github.com/react-navigation/tabs is using
Keyboard.removeListener
in at least 10 different places.I know it is a problem with the tabs package but the fact that the current stable version of react-native-router-flux depends on it makes this a problem for users of react-native-router-flux
I don't see any solution other than patching react-navigation/tabs, but their repo has been archived, so I'm hesitant about going that route just for a temporary fix that will never make it to their mainline.
If anyone has run into this and has any suggested workaround or working patch, I'd really appreciate knowing what you did.
Another issue from a different project with similar observed behavior: facebook/react-native#32217
The text was updated successfully, but these errors were encountered: