Skip to content

Commit 7d8a1bb

Browse files
alanjhughesgabrieldonadel
authored andcommitted
Add extraModulesForBridge impl to RCTInstance (#35)
1 parent b50a12f commit 7d8a1bb

File tree

1 file changed

+7
-0
lines changed
  • packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon

1 file changed

+7
-0
lines changed

packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ - (void)registerSegmentWithId:(NSNumber *)segmentId path:(NSString *)path
177177

178178
#pragma mark - RCTTurboModuleManagerDelegate
179179

180+
- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge {
181+
if ([_appTMMDelegate respondsToSelector:@selector(extraModulesForBridge:)]) {
182+
return [_appTMMDelegate extraModulesForBridge:bridge];
183+
}
184+
return @[];
185+
}
186+
180187
- (Class)getModuleClassFromName:(const char *)name
181188
{
182189
if ([_appTMMDelegate respondsToSelector:@selector(getModuleClassFromName:)]) {

0 commit comments

Comments
 (0)