|
@@ -3,6 +3,7 @@
|
3
|
3
|
// **********************************************
|
4
|
4
|
// *** DON'T MISS: THE NEXT LINE IS IMPORTANT ***
|
5
|
5
|
// **********************************************
|
|
6
|
+#import <React/RCTBundleURLProvider.h>
|
6
|
7
|
#import <ReactNativeNavigation/ReactNativeNavigation.h>
|
7
|
8
|
|
8
|
9
|
// IMPORTANT: if you're getting an Xcode error that RCCManager.h isn't found, you've probably ran "npm install"
|
|
@@ -14,17 +15,10 @@
|
14
|
15
|
|
15
|
16
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
16
|
17
|
{
|
17
|
|
- NSURL *jsCodeLocation;
|
18
|
|
-#ifdef DEBUG
|
19
|
|
- jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
|
20
|
|
-#else
|
21
|
|
- jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
22
|
|
-#endif
|
23
|
|
-
|
24
|
|
-
|
25
|
18
|
// **********************************************
|
26
|
19
|
// *** DON'T MISS: THIS IS HOW WE BOOTSTRAP *****
|
27
|
20
|
// **********************************************
|
|
21
|
+ NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
|
28
|
22
|
[ReactNativeNavigation bootstrap:jsCodeLocation launchOptions:launchOptions];
|
29
|
23
|
|
30
|
24
|
/*
|