SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Add null check for ViewState in SurfaceMountingManager::updateProps

Summary:
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

Differential Revision: D97087668
B
Bartlomiej Bloniarz committed
4d94021a3934db81753c5158a3bcf991bf71b5a6
Parent: 7ece7bd
Committed by Facebook GitHub Bot <[email protected]> on 3/19/2026, 12:10:50 PM