Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 9b366d5

Browse files
author
max-mironov
authored
Fixed jsCodeLocation init in demo app (#801)
1 parent 57a1e43 commit 9b366d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Examples/CodePushDemoApp/iOS/CodePushDemoApp/AppDelegate.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
2020
NSURL *jsCodeLocation;
2121

2222

23-
jsCodeLocation = [CodePush bundleURL];
23+
#ifdef DEBUG
24+
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
25+
#else
26+
jsCodeLocation = [CodePush bundleURL];
27+
#endif
2428

2529
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
2630
moduleName:@"CodePushDemoApp"

0 commit comments

Comments
 (0)