mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0d6d58656a
Summary: Before this change, fields of EmptyLayoutMetrics have some "invalid" values to allow us to compare equal them individually and get `false`. Turned out that having invalid values there might break some serialization layers, which is no good. This change fixes that and adds explicit check for EmptyLayoutMetrics before running a comparison of individual fields. Changelog: [Internal] Fabric-specific internal change. Reviewed By: mdvacca Differential Revision: D20324881 fbshipit-source-id: ab8e2a402f6bdfb393fc9b6789decb526fa94dfa