mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: RCTRootVeiw exports the bridge. One reason why is to allow users of RCTRootView users to access NativeModules. ## Changes - RCTBridge now exports the RCTModuleRegistry - RCTRootView now exports the RCTModuleRegistry exported by the bridge - Users of RCTRootView use the RCTModuleRegistry exported by RCTRootView to access NativeModules ## Benefits Down the line, we'll change how RCTRootView gets the RCTModuleRegistry (i.e: it won't use the bridge in bridgeless mode). Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D30434886 fbshipit-source-id: 875fce24d2fd9ee6350f128c8612e613e61e390e