Files
react-native/Libraries
Joshua Gross 6eea5974cf LayoutAnimations.js: ensure that onComplete callback is always called, even if LayoutAnimations is disabled on iOS
Summary:
See comments. On iOS in Fabric, LayoutAnimations is only conditionally enabled; whereas on Android it's always enabled. That means for code on iOS that relies on the onComplete callback, there might be bugs.

Ensure the callback is always called on iOS by racing a timer with the animation completion.

This will be deleted before Fabric "ships" fully.

Impact is minimal since this change is scoped to only run on iOS and under Fabric.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D26166237

fbshipit-source-id: 9a07a402845c379e1511f199eef3d3e249e1eb06
2021-02-01 11:57:33 -08:00
..
2021-01-07 03:19:04 -08:00
2021-01-04 07:40:19 -08:00
2020-10-18 20:30:55 -07:00
2021-01-07 03:19:04 -08:00
2021-01-07 03:19:04 -08:00
2021-02-01 11:04:37 -08:00
2021-01-12 11:14:27 -08:00
2021-01-07 03:19:04 -08:00
2020-02-21 10:34:40 -08:00