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:
Ramanpreet Nara
2021-05-04 18:33:23 -07:00
committed by Facebook GitHub Bot
parent 329f58ee46
commit 8ba73a79f2
+12 -1
View File
@@ -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