Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fabric: Fixed threading issue in RCTNativeAnimatedModule
Summary: The previous version of the code accessed `_animIdIsManagedByFabric` on the main thread (which is should be accessed on the UIManager thread) and called `flushOperationQueues` on the main thread as well (also must be called on UIManager thread because it modifies instance variables (e.g. `_operations`) which supposed to be accessed on UIManager thread). The diff fixes that introducing an additional queue jump. That's should be fine because the overall architecture of RCTNativeAnimatedModule is appeared to be asynchronous and should be resilient to possible races. Reviewed By: sammy-SC Differential Revision: D17523958 fbshipit-source-id: c4b4ce38b68b009726b2f6c28c38b32b9f9d6921
- Loading branch information