Error: android_crash:com.facebook.react.bridge.RetryableMountingLayerException:com.facebook.react.fa

Reviewed By: cortinico

Differential Revision: D95793355

fbshipit-source-id: 27faff3c27430c8148f5d5bb97f2d2e5e5f82cb9
This commit is contained in:
Pieter De Baets authored and meta-codesync[bot] committed 2026-03-17 08:29:44 -07:00
1 parent 455c49c6ba
commit 3d119aca4f
1 file changed
+9 -2
@@ -739,13 +739,20 @@ internal constructor(
return
}
val viewState = getViewState(reactTag)
val viewState = getNullableViewState(reactTag)
if (viewState == null) {
ReactSoftExceptionLogger.logSoftException(
ReactSoftExceptionLogger.Categories.SURFACE_MOUNTING_MANAGER_MISSING_VIEWSTATE,
ReactNoCrashSoftException("Unable to find viewState for tag $reactTag for updateLayout"),
)
return
}
// Do not layout Root Views
if (viewState.isRoot) {
return
}
val viewToUpdate = checkNotNull(viewState.view) { "Unable to find View for tag: $reactTag" }
val viewToUpdate = viewState.view ?: return
viewToUpdate.layoutDirection =
when (layoutDirection) {