mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Fabric will crash if Inf/NaN values are passed to the native side, so just pass zero to native in those cases. It's an equally (in)valid value and we're already logging the error. Also, debounce the error so we don't spam the LogBox/console. This should potentially be changed to a warning. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D22008980 fbshipit-source-id: 1aef33a13febed04311557718f05ef79bbbcca93