mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
7243517481
Summary: ## Context In bridgeless mode, RCTRootView is actually an instance of RCTSurfaceHostingProxyRootView. A lot of code that uses RCTRootView uses its RCTEventDispatcher or RCTModuleRegistry properties. Both of properties reach into the bridge, which means these APIs only work in bridge mode. ## Changes - Give RCTSurfaceHostingProxyRootView access to the bridgeless RCTModuleRegistry, in bridgeless mode. ## Benefits - This makes the RCTEventDispatcher and RCTModuleRegistry properties of RCTSurfaceHostingProxyRootView work in bridgeless mode. This allows us to eliminate branching in native code that uses these properties. Diffs incoming. Changelog: [Internal] Reviewed By: sshic Differential Revision: D30753829 fbshipit-source-id: 0815f8ae5507686bd5aff20a3abc1843533bb132