Skip to content

Commit

Permalink
(iOS) demo app: fix app delegate error.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Jul 19, 2022
1 parent 6f19fe7 commit 4d0ef29
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/demo-react-native/ios/example/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ @implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSURL *jsCodeLocation;
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"
fallbackResource:@"main"];

jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"example"
Expand Down

0 comments on commit 4d0ef29

Please sign in to comment.