mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
1 parent
455c49c6ba
commit
3d119aca4f
1 file changed
+9
-2
+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) {
|
||||
|
||||
Reference in new issue
Block a user