-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
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
Attempted import error: 'BackHandler' is not exported from 'react-native' (imported as 'BackHandler'). #2504
Comments
I faced the same issue after having upgraded upto 0.19.1. Webpack throw Error |
BackHandler is no longer exported. You also shouldn't be importing 'native' implementations from react-navigation when running on web |
Since |
Open an issue against react-navigation |
Hello @necolas . As stated here I believe that BackHandler support should be re added. The purpose of this library is to provide compatibility with React Native. BackHandler is not deprecated on React Native, so if you remove it from react native web, it will cause incompatibility issues with RN, that is the main goal of this library. You can't just expect that every other RN library updates their code when they are not even using react-native-web, they are just using react-native. |
I agree, not sure how to solve this without it being supported by the library as it's not deprecated in RN. |
Any update on this?
|
The removal of this, totally breaks the migration from expo 48 to 49 |
Same issue found in expo web, after migration from expo 48 to 49 |
Any workaround for this issue? It is blocking migration from expo 48 to 49. |
yep, this is getting really annoying, not being able to migrate to expo 49 |
I am running into the same problem trying to upgrade from Expo 48 to 49. This is going to be a major issue soon for Android releases since Google is now requiring Expo SDK's to target Android API level 33. I really don't run a modded version of react-native-web, but it's starting to look like we might have to do that. :-( |
any updates? |
There're lots of errors in web console. any updates on this issue? |
this ever going to get fixed? |
@necolas how to overcome an error when trying to run react-native-web while having a sub-dependency that doesn't work on react-native-web? |
@gituser8796 you need to create your own component wrapper and differentiate the implementations with ComponentName.tsx => Native |
Has anyone found a solution? BackHandler is built into NavigationContainer in react-navigation/native and is not deprecated. |
|
I am also facing the similar issue while upgrading expo 50 to 51. @SnakeLil Please help to resolve this |
Is there an existing issue for this?
Describe the issue
Expected behavior
no error
Steps to reproduce
upgrade from 0.18.12 to 0.19.1
Test case
n/a
Additional comments
The text was updated successfully, but these errors were encountered: