Files
react-native/React/Base
Ramanpreet Nara 9f69c922cb Remove RCTRootView.bridge usage from RCTBaseViewController
Summary:
RCTBaseViewController uses RCTRootView.bridge to call RCTViewEventEmitter.emit.

## Changes
- RCTEventDispatcher now exposes a method to dispatch RCTViewEventEmitter events.
- RCTRootView (for paper), and RCTSurfaceHostingProxyRootView (for fabric and bridgeless mode) now exports the RCTEventDispatcher by grabbing it from the bridge
- RCTBaseViewController now uses the event dispatcher exported from RCTRootView to dispatch the RCTViewEventEmitter event.

## Benefits
- RCTBaseViewController no longer uses the bridge to dispatch RCTViewEventEmitter events
- In the future, we'll make RCTSurfaceHostingProxyRootView work with bridgeless mode, which'll allow us to remove the bridge/bridgeless fork in RCTBaseViewController.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D30434884

fbshipit-source-id: d961a56ac2abc08a661f8fe7c37926f219b731d0
2021-09-02 16:50:08 -07:00
..
2021-05-20 21:24:25 -07:00
2021-08-13 16:29:41 -07:00
2021-08-24 07:21:56 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2021-05-20 19:19:57 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-11-18 16:17:09 -08:00
2021-01-09 22:11:00 -08:00
2019-07-12 16:51:28 -07:00
2020-12-19 06:01:47 -08:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00