Files
react-native/packages
Pieter De Baets 56ad8d9bfd Make missing parent view state in updateLayout a soft error (#49951)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49951

We previously fixed Differentiator generating an incorrect parentTag (https://github.com/facebook/react-native/pull/48055), but this can lead to crashes in Android UI due to reordering that happens in the Android mounting layer. While we have an experiment to disable this reordering (https://github.com/facebook/react-native/pull/46702) this currently has a negative performance impact which needs to be addressed.

As a mitigation, we can make the lookup of parentTag's ViewManager state nullable. We only require this to support `needsCustomLayoutForChildren`, which is not commonly used, and seems acceptable to drop in this scenario.

Changelog: [Android][Changed] Do not crash when parent view state can't be found

Reviewed By: NickGerleman

Differential Revision: D70966621

fbshipit-source-id: 33d0b6a90860788a4c9a8c6cea36c2c72c1392e1
2025-10-20 13:50:29 +01:00
..
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00
2025-08-14 15:35:54 +01:00
2025-08-14 11:33:35 +00:00
2025-08-14 11:33:35 +00:00