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.

crash at NativeViewHierarchyOptimizer.transitionLayoutOnlyViewToNativeView (NativeViewHierarchyOptimizer.java:440)

See original GitHub issue

Description

java.lang.AssertionError: at com.facebook.infer.annotation.Assertions.assertCondition (Assertions.java:66) at com.facebook.react.uimanager.NativeViewHierarchyOptimizer.transitionLayoutOnlyViewToNativeView (NativeViewHierarchyOptimizer.java:440) at com.facebook.react.uimanager.NativeViewHierarchyOptimizer.handleForceViewToBeNonLayoutOnly (NativeViewHierarchyOptimizer.java:219) at com.facebook.react.views.text.ReactBaseTextShadowNode.spannedFromShadowNode (ReactBaseTextShadowNode.java:291) at com.facebook.react.views.text.ReactTextShadowNode.onBeforeLayout (ReactTextShadowNode.java:248) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:867) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.notifyOnBeforeLayoutRecursive (UIImplementation.java:865) at com.facebook.react.uimanager.UIImplementation.updateViewHierarchy (UIImplementation.java:628) at com.facebook.react.uimanager.UIImplementation.dispatchViewUpdates (UIImplementation.java:594) at com.facebook.react.uimanager.UIManagerModule.onBatchComplete (UIManagerModule.java:799) at com.facebook.react.bridge.NativeModuleRegistry.onBatchComplete (NativeModuleRegistry.java:119) at com.facebook.react.bridge.CatalystInstanceImpl$BridgeCallback.onBatchComplete (CatalystInstanceImpl.java:171) at com.facebook.react.bridge.queue.NativeRunnable.run (NativeRunnable.java:-2) at android.os.Handler.handleCallback (Handler.java:873) at android.os.Handler.dispatchMessage (Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:27) at android.os.Looper.loop (Looper.java:214) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:226) at java.lang.Thread.run (Thread.java:764)

Version

0.63

Output of npx react-native info

ReactNative is not installed on the local computer

Steps to reproduce

no reproduce

Snack, code example, screenshot, or link to a repository

no example

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
HimanshuNarangcommented, Jul 25, 2022

We encountered this issue too, any updates?

0reactions
david3paboncommented, Sep 16, 2022

Any update on this issue? We have incidents of this crash in Firebase. We are on version 0.65.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native - bytemeta
crash at NativeViewHierarchyOptimizer.transitionLayoutOnlyViewToNativeView (NativeViewHierarchyOptimizer.java:440) · Can't run iOS app with terminal.
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