question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to resolve view with tag ## which doesn't exist

See original GitHub issue

Description

Hello, I upgraded reanimated to v2.4.0 and I got this crash error, when I hit the back button and then I come back in the app

I think it is related to this fix #2802

Fatal Exception: com.facebook.react.uimanager.IllegalViewOperationException
Trying to resolve view with tag 33 which doesn't exist
com.facebook.react.uimanager.NativeViewHierarchyManager.resolveView (NativeViewHierarchyManager.java:102)
com.facebook.react.uimanager.UIManagerModule.resolveView (UIManagerModule.java:964)
com.swmansion.reanimated.layoutReanimation.AnimationsManager.removeLeftovers (AnimationsManager.java:236)
com.swmansion.reanimated.layoutReanimation.AnimationsManager.lambda$scheduleCleaning$0$AnimationsManager (AnimationsManager.java:286)
com.swmansion.reanimated.layoutReanimation.-$$Lambda$AnimationsManager$wJRqdL09xrx99sALjL4PPWgrOyU.run (Source inconnue:4)
android.os.Handler.handleCallback (Handler.java:883)
android.os.Handler.dispatchMessage (Handler.java:100)
com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:27)
android.os.Looper.loop (Looper.java:224)
android.app.ActivityThread.main (ActivityThread.java:7562)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:539)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:950)

Expected behavior

Actual behavior & steps to reproduce

  • Open App
  • Hit the phone back button
  • Open App

Snack or minimal code example

https://github.com/denistea/reanimated-2-playground.git

Package versions

name version
react-native 0.66.0
react-native-reanimated 2.4.0
NodeJS 16.13.0
Java 1.8
Gradle 6.9

Affected platforms

  • Android
  • iOS
  • Web

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

11reactions
scyrychcommented, Mar 8, 2022

@piaskowyk Please create a release as fast as possible 🙏 . I can’t release my app since it crash every time when I go back and forth in the app.

9reactions
RezaHeydariicommented, Mar 10, 2022

@piaskowyk Please create a release as fast as possible🙏 we delayed our production release because of this bug .

Read more comments on GitHub >

github_iconTop Results From Across the Web

(Android) Trying to resolve view with tag which doesn't exist #7
I'm getting this issue if my view reference did not specify a backgroundColor. so the code works fine if I take a Snapshot...
Read more >
How to make Expo.takeSnapshotAsync work on Android
This works fine on the iOS simulator but on Andriod, I get a red screen error: Trying to resolve view with tag 488...
Read more >
Troubleshooting | React Navigation
Troubleshooting. This section attempts to outline issues that users frequently encounter when first getting accustomed to using React Navigation.
Read more >
react-native-view-shot - npm
Start using react-native-view-shot in your project by running `npm i ... "Trying to resolve view with tag '{tagID}' which doesn't exist".
Read more >
View - React Native
The most fundamental component for building a UI, View is a container that supports layout with flexbox, style, some touch handling, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found