forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bridgeless mode: Attach bridge/bridgeless apis to interop modules (fa…
…cebook#38202) Summary: Pull Request resolved: facebook#38202 ## Context Native modules can synthesize these bridge/bridgeless-agnostic abstractions: - viewRegistry_DEPRECATED - bundleManager - callableJSModules - moduleRegistry ## The Problem The TurboModule interop layer wasn't attaching these abstractions to legacy modules. ## The Issue In Bridgeless mode, the React instance attaches these abstractions to **all** modules, by implementing TurboModuleManagerDelegate. But, the TurboModuleManager creates legacy modules without calling into the TurboModuleManagerDelegate. So, legacy modules never had these abstractions attached. ## The Fix Move the attachment logic to within TurboModuleManager. Changelog: [Internal] Reviewed By: dmytrorykun Differential Revision: D47074304 fbshipit-source-id: 87408106c00db8011740068ac0bd7dacd6b5ff81
- Loading branch information
1 parent
8ab233d
commit 5f84d73
Showing
6 changed files
with
62 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters