software-mansion / react-native-screens

Native navigation primitives for your React Native app.
https://docs.swmansion.com/react-native-screens/
MIT License
3.1k stars 521 forks source link

RNScreens Attempt to register InsestsObserverProxy on DecorView a while it has been already registered on DecorView b EXPO SDK 52 #2519

Open Odyrac opened 2 hours ago

Odyrac commented 2 hours ago

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

github-actions[bot] commented 2 hours ago

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.

github-actions[bot] commented 2 hours ago

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?

outaTiME commented 2 hours ago

Hi there,
I'm having the same issue on Android with Expo 51 and react-native ~0.75.4 using react-native-screens ^4.2.0.
It happens when I switch back and forth to the app.

Odyrac commented 2 hours ago

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

outaTiME commented 1 hour ago

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,
(As I mentioned earlier) I don't think this is specific to Expo 52. I'm experiencing the same issue with the previous version of Expo.

Odyrac commented 1 hour ago

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, (As I mentioned earlier) I don't think this is specific to Expo 52. I'm experiencing the same issue with the previous version of Expo.

What was the trigger for you? I didn't have this error before upgrading

outaTiME commented 1 hour ago

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, (As I mentioned earlier) I don't think this is specific to Expo 52. I'm experiencing the same issue with the previous version of Expo.

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.

Odyrac commented 1 hour ago

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

outaTiME commented 1 hour ago

Just in case, here’s a video of the issue (using Expo 51 with react-native ~0.75.4 and react-native-screens ^4.2.0):

https://github.com/user-attachments/assets/4386e05b-2d72-4e3b-aa5d-e27295a77a1d

doughsay commented 1 hour ago

Duplicate of this? https://github.com/software-mansion/react-native-screens/issues/2507