mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
61c1d60356
Summary: For some interrupted animations we will execute a "final" mutation associated with the animation, if it exists. For example, "UPDATE" animations always have a final Update animation associated with them. Some, however, do not. For example: INSERT animations do not have a final mutation associated by default. In these cases (before this diff) if the animation from opacity 0 to 1 was interrupted, the View will appear "stuck" at some intermediate opacity. To mitigate that, we generate a synthetic "final" mutation at 100% progress through the animation if it is interrupted. Changelog: [Internal] Reviewed By: fred2028 Differential Revision: D24691151 fbshipit-source-id: d9730b8a3493a5eeac4de325e7e0a7a64f73c8a0