Skip to content

Commit 7739615

Browse files
authored
[LOCAL][RN][iOS][OldArch] Add missing loadFromSource method in the DefaultRNFactoryDelegate (#49930)
1 parent bcc8b27 commit 7739615

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: packages/react-native/Libraries/AppDelegate/RCTDefaultReactNativeFactoryDelegate.mm

+7
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,11 @@ - (Class)getModuleClassFromName:(const char *)name
140140
return nullptr;
141141
}
142142

143+
- (void)loadSourceForBridge:(RCTBridge *)bridge
144+
onProgress:(RCTSourceLoadProgressBlock)onProgress
145+
onComplete:(RCTSourceLoadBlock)loadCallback
146+
{
147+
[RCTJavaScriptLoader loadBundleAtURL:[self sourceURLForBridge:bridge] onProgress:onProgress onComplete:loadCallback];
148+
}
149+
143150
@end

Diff for: packages/rn-tester/RNTester/AppDelegate.mm

-7
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ - (BOOL)application:(UIApplication *)app
8080
return [RCTLinkingManager application:app openURL:url options:options];
8181
}
8282

83-
- (void)loadSourceForBridge:(RCTBridge *)bridge
84-
onProgress:(RCTSourceLoadProgressBlock)onProgress
85-
onComplete:(RCTSourceLoadBlock)loadCallback
86-
{
87-
[RCTJavaScriptLoader loadBundleAtURL:[self sourceURLForBridge:bridge] onProgress:onProgress onComplete:loadCallback];
88-
}
89-
9083
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const std::string &)name
9184
jsInvoker:(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker
9285
{

0 commit comments

Comments
 (0)