mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
47820cba39
Summary: Before, when we called setValue with a PlatformColor, we unnecessarily called setValue on all component AnimatedValues before updateAnimatedNodeConfig. This diff also fixes a bug where if we set a PlatformColor as the initial color, calling setValue with a non-PlatformColor would not have any effect. The fix is to reset AnimatedColor.nativeColor to null upon calling setValue. Changelog: [Internal] Optimize AnimatedColor when setting platform color Reviewed By: javache Differential Revision: D34187540 fbshipit-source-id: a0005d13f392a858d2eade912f2353f67eec1fd9