Move RCTNativeAnimatedModule onto the main queue
Summary: We're mutating dictionaries on one thread for bookkeeping (anytime we receive a call over the bridge) and iterating over them on the main thread each frame (in `updateAnimations`). Seems like this can all happen on the main thread without issue. Am I missing something? **Test plan (required)** Run UIExplorer NativeAnimated examples before and after - compare the results. Nothing should have changed. Closes https://github.com/facebook/react-native/pull/9049 Differential Revision: D3682871 fbshipit-source-id: c6de62063e724b15b9678a9ef0290284e928b31b
This commit is contained in:
parent
6b9406ed5a
commit
bf82a8d1a8
|
@ -47,6 +47,11 @@ RCT_EXPORT_MODULE()
|
|||
_propAnimationNodes = [NSMutableSet new];
|
||||
}
|
||||
|
||||
- (dispatch_queue_t)methodQueue
|
||||
{
|
||||
return dispatch_get_main_queue();
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(createAnimatedNode:(nonnull NSNumber *)tag
|
||||
config:(NSDictionary<NSString *, id> *)config)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue