react-native-macos/React/Modules
Peter Argany c494d590fb Workarounds for two bridge methods: dispatchToJSThread and enqueueJSCall:
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
2020-08-07 11:55:51 -07:00
..
RCTEventEmitter.h Workarounds for two bridge methods: dispatchToJSThread and enqueueJSCall: 2020-08-07 11:55:51 -07:00
RCTEventEmitter.m Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTI18nUtil.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTI18nUtil.m Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTLayoutAnimation.h Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTLayoutAnimation.m Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTLayoutAnimationGroup.h Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTLayoutAnimationGroup.m Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTRedBoxExtraDataViewController.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTRedBoxExtraDataViewController.m Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTSurfacePresenterStub.h Remove integration between Paper and Fabric's UIManager 2020-06-29 15:26:31 -07:00
RCTSurfacePresenterStub.m Fabric: Fixing incorrect retaining policy for RCTSurfacePreseter (crash in RCTNativeAnimatedModule) 2020-01-13 13:36:36 -08:00
RCTUIManager.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTUIManager.m Do not log warning if JS responder isn't set in Fabric 2020-06-30 15:56:47 -07:00
RCTUIManagerObserverCoordinator.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTUIManagerObserverCoordinator.mm Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTUIManagerUtils.h Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTUIManagerUtils.m Clang format for all React Native files 2020-03-08 23:01:17 -07:00