Skip to content

Unable to find viewState for tag 418. Surface stopped: false #8139

@Aikenwu

Description

@Aikenwu

What happened?

We upgraded RNN to 8.3.2 and RN to meet Android's 16kb requirement, and therefore released it on the Google Play Store on November 1st. In the last two days, we've encountered many errors like the following: Fatal Exception: com.facebook.react.bridge.RetryableMountingLayerException: Unable to find viewState for tag 418. Surface stopped: false. I've spent a day investigating this error, and I can't seem to resolve it locally. I found the following related issues: facebook/react-native#49077, software-mansion/react-native-reanimated#7493

I'm not sure if this issue is related to RNN, but I have a few questions:

  1. RNN 7.40.0 does not depend on reanimated-color-picker, and therefore does not depend on react-native-reanimated; why does RNN 8.3.2 require reanimated-color-picker? My project currently does not have react-native-reanimated installed. To fix this error, I installed and applied the patch according to this issue: Reanimated is not supporting multiple surfaces software-mansion/react-native-reanimated#8344

  2. What is the relationship between RNN and react-native-reanimated? Can my project do without react-native-reanimated? You can also set Animations: https://wix.github.io/react-native-navigation/docs/style-animations

  3. I found a related bug on iOS: [iOS] React Native Navigation + Reanimated Crash #8121, but not on Android. Has no one else encountered this?

What was the expected behaviour?

I would be extremely grateful if someone could answer my question.

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

N/A

In what environment did this happen?

React Native Navigation version: 8.3.2
React Native version: 0.77.3
Has Fabric (React Native's new rendering system) enabled: (yes/no) yes
Node version: v20.19.4
Device model: ?
Android version: Android 15/16

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions