mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c494d590fb
Summary: To get `RCTNativeAnimatedModule` working bridgeless, I need to get `RCTEventDispatcher` working bridgeless. To get `RCTEventDispatcher` working bridgeless, I need to support 2 new bridge methods: - `- (void)enqueueJSCall:(NSString *)moduleDotMethod args:(NSArray *)args` - `- (void)dispatchBlock:(dispatch_block_t)block queue:(dispatch_queue_t)queue;` For (1) I copied the bridge impl exactly. For (2), the bridge only dispatches to JS thread, else uses `dispatch_async`. I only added support for dispatching to JS thread, callers can `dispatch_async` themselves if they want to. Changelog: [Internal] Differential Revision: D22962292 fbshipit-source-id: e34d15aee72f80dffcaa945bfda05ea415f66df7