SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

Add null check for ViewState in SurfaceMountingManager::updateProps (#56147)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56147

I saw that in D95793355 a null check was added for the view state in updateLayout. A similar issue can happen (and has been happening with Reanimated) with the updateProps method, so this diff makes it consistent with the other codepaths.

## Changelog:
[General] [Changed] - use getNullableViewState in SurfaceMountingManager::updateProps and log a soft exception instead

Reviewed By: javache

Differential Revision: D97087668

fbshipit-source-id: e69da89e2f0277714d242ed6ef5c9050cdc03dbc
B
Bartlomiej Bloniarz committed
bbf7004935ec3ed25e0270c60889f118ba170495
Parent: 1fdd167
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 3/19/2026, 3:35:18 PM