mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Attach RCTBundleManager to TurboModules (Bridge mode)
Summary: See title. Changelog: [Internal] Reviewed By: PeteTheHeat Differential Revision: D28160096 fbshipit-source-id: c14e5a5bc9f226f1e2559b3a256edcf5379d3c2e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
329f58ee46
commit
8ba73a79f2
@@ -257,12 +257,23 @@ struct RCTInstanceCallback : public InstanceCallback {
|
||||
* Attach the RCTViewRegistry to this TurboModule, which allows this TurboModule
|
||||
* To query a React component's UIView, given its reactTag.
|
||||
*
|
||||
* Usage: In the NativeModule @implementation, include:
|
||||
* Usage: In the TurboModule @implementation, include:
|
||||
* `@synthesize viewRegistry_DEPRECATED = _viewRegistry_DEPRECATED`
|
||||
*/
|
||||
if ([bridgeModule respondsToSelector:@selector(setViewRegistry_DEPRECATED:)]) {
|
||||
bridgeModule.viewRegistry_DEPRECATED = _viewRegistry_DEPRECATED;
|
||||
}
|
||||
|
||||
/**
|
||||
* Attach the RCTBundleManager to this TurboModule, which allows this TurboModule to
|
||||
* read from/write to the app's bundle URL.
|
||||
*
|
||||
* Usage: In the TurboModule @implementation, include:
|
||||
* `@synthesize bundleManager = _bundleManager`
|
||||
*/
|
||||
if ([bridgeModule respondsToSelector:@selector(setBundleManager:)]) {
|
||||
bridgeModule.bundleManager = _bundleManager;
|
||||
}
|
||||
}
|
||||
|
||||
- (std::shared_ptr<MessageQueueThread>)jsMessageThread
|
||||
|
||||
Reference in New Issue
Block a user