Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,14 @@ 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 updateProps"),
)
return
}

if (
ReactNativeFeatureFlags.overrideBySynchronousMountPropsAtMountingAndroid() &&
Expand All @@ -624,7 +631,7 @@ internal constructor(
viewState.currentProps = ReactStylesDiffMap(props)
}

val view: View = checkNotNull(viewState.view) { "Unable to find view for tag [$reactTag]" }
val view: View = viewState.view ?: return
checkNotNull(viewState.viewManager).updateProperties(view, viewState.currentProps)
}

Expand Down
Loading