-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
RNScreens Attempt to register InsestsObserverProxy on DecorView a while it has been already registered on DecorView b EXPO SDK 52 #2519
Comments
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Snack or a link to a repository section. |
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
Hi there, |
Hi, when i delete all the data of my Expo Go it's working once, then error comes back. So many issues since upgrading to sdk 52 lmao |
Hi @Odyrac, |
What was the trigger for you? I didn't have this error before upgrading |
In your case, this error is probably happening because you updated to react-native-screens version 4.x when switching to Expo 52. This issue didn’t occur with version 3.35.0. |
Yes but I tried to use version 3.35.0 and I had other errors due to incompatibilty with Expo probably, so I still don't have solution with sdk52 |
Just in case, CleanShot.2024-11-19.at.15.57.20.mp4 |
Duplicate of this? #2507 |
I want to confirm that I've managed to reproduce the issue. |
Could someone confirm whether applying this patch resolves the issue for you? https://github.com/software-mansion/react-native-screens/pull/2526.patch You can either apply this patch or try to install react-native-screens directly from branch:
|
Now, after installing the dependency pointing to the branch and creating a new build, I’m running into a different error: For reference, im using Expo 51 with react-native ~0.75.4. |
@outaTiME Idk your setup, but Expo 51 used react-navigation v6, which is incompatible with Note that AFAIK if you're running your app with Expo Go you can not just hotswap library version, as the native code won't be rebuilt. AFAIK you need the development build. |
Got it, I didn’t know that react-native-screens@4 wasn’t compatible with Expo 51 and React Navigation 6. On another note, I updated the react-native-screens dependency to point to your branch and created a fresh development build using |
Maybe my issue is related to how Yarn 4.x downloads dependencies from a branch. When I check the downloaded code, the |
Yeah, this definitely looks like some kind of problem with our package. We've had this behaviour reported before (when installing the library from branch source files aren't downloaded), but I've no idea why this happens. It is especially baffling that when I'm installing from branch it works... If you have capacity maybe try to apply the patch I've linked in one of the posts above ☝🏻 |
Is this patch compatible with Expo environment ? I don't have android folder in my project |
Okay so I apply the patch directly in the module react-native-screens (this actually seems more logical) but still get same error message with the second reload. I started with --clear my expo go to be sure of no conflict |
I don't understand why the issue was closed because it's still a problem. I tried to update RNScreens, I'm now in "react-native-screens": "^4.2.0", but still the same error when app is starting :( |
update, this has definitly a link with statusBarTranslucent: true, in a Stack.Screen, when I remove it, error disappered, any idea of a fix ? |
@kkafar did your merge fix the issue with statusBarTranslucent ? |
The issue is closed because the PR with fix has been merged. The release will be in few hours, I had a minor hickup when testing |
I've released the 4.3.0 which hopes to resolve the issue. Let me know in case the issue persists. |
@kkafar I tried but still same error. Did you investigate into statusBarTranslucent ? If I remove it, error disappear |
@Odyrac there can not be the same error, because I've removed the code that thrown the error completely ;D Make sure you have appropriate version installed in your node_modules. In case you're using Expo Go you can't just upgrade the library, because it's native code won't be updated. You need to setup development build. |
Description
After migrating to Expo SDK52 my project is starting with an error. The first time it's working and on the first reload the error RNScreens Attempt to register InsestsObserverProxy on DecorView a while it has been already registered on DecorView b is shown on Expo Go (not in the console).
Steps to reproduce
Use React Native Screens with Expo SDK 52.
Snack or a link to a repository
/
Screens version
4.2.0 and 4.1.0
React Native version
0.76.2
Platforms
Android
JavaScript runtime
Hermes
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: