|
@@ -21,9 +21,27 @@
|
21
|
21
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... }
|
22
|
22
|
|
23
|
23
|
```
|
24
|
|
-
|
25
|
|
- Its contents must be replaced with the contents of this [reference](https://github.com/wix/react-native-navigation/blob/v2/playground/ios/playground/AppDelegate.m#L16).
|
26
|
|
-
|
|
24
|
+
|
|
25
|
+ Its content should look like this:
|
|
26
|
+ ```objectivec
|
|
27
|
+ #import "AppDelegate.h"
|
|
28
|
+
|
|
29
|
+ #import <React/RCTBundleURLProvider.h>
|
|
30
|
+ #import <React/RCTRootView.h>
|
|
31
|
+ #import <ReactNativeNavigation/ReactNativeNavigation.h>
|
|
32
|
+
|
|
33
|
+ @implementation AppDelegate
|
|
34
|
+
|
|
35
|
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
36
|
+ {
|
|
37
|
+ NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
|
|
38
|
+ [ReactNativeNavigation bootstrap:jsCodeLocation launchOptions:launchOptions];
|
|
39
|
+
|
|
40
|
+ return YES;
|
|
41
|
+ }
|
|
42
|
+
|
|
43
|
+ @end
|
|
44
|
+ ```
|
27
|
45
|
|
28
|
46
|
## Android
|
29
|
47
|
|