Fix RNTester in main (#36686)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/36686

After the recent changes of Metro and Metro-Config, we need to update the path used to load the bundle in RNTester

## Changelog:
[General][Fixed] - Use the right path to load RNTester bundle

Reviewed By: cortinico

Differential Revision: D44465418

fbshipit-source-id: 96170194579792f9a5d8a141328d43e45a4db973
This commit is contained in:
Riccardo Cipolleschi
2023-03-28 10:49:30 -07:00
committed by Facebook GitHub Bot
parent 6668e7bd03
commit a881269503
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot";
- (NSURL *)sourceURLForBridge:(__unused RCTBridge *)bridge
{
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"packages/rn-tester/js/RNTesterApp.ios"];
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"js/RNTesterApp.ios"];
}
- (void)initializeFlipper:(UIApplication *)application
@@ -40,7 +40,7 @@ public class RNTesterApplication extends Application implements ReactApplication
new DefaultReactNativeHost(this) {
@Override
public String getJSMainModuleName() {
return "packages/rn-tester/js/RNTesterApp.android";
return "js/RNTesterApp.android";
}
@Override