Ver código fonte

improved docs for example project

talkol 9 anos atrás
pai
commit
3cbd9f051a
1 arquivos alterados com 6 adições e 2 exclusões
  1. 6
    2
      example/ios/example/AppDelegate.m

+ 6
- 2
example/ios/example/AppDelegate.m Ver arquivo

2
 
2
 
3
 // **********************************************
3
 // **********************************************
4
 // *** DON'T MISS: THE NEXT LINE IS IMPORTANT ***
4
 // *** DON'T MISS: THE NEXT LINE IS IMPORTANT ***
5
+// **********************************************
5
 #import "RCCManager.h"
6
 #import "RCCManager.h"
6
 
7
 
8
+// IMPORTANT: if you're getting an Xcode error that RCCManager.h isn't found, you've probably ran "npm install"
9
+// with npm ver 2. You'll need to "npm install" with npm 3 (see https://github.com/wix/react-native-navigation/issues/1)
10
+
7
 #import "RCTRootView.h"
11
 #import "RCTRootView.h"
8
 
12
 
9
 @implementation AppDelegate
13
 @implementation AppDelegate
16
 
20
 
17
 
21
 
18
   // **********************************************
22
   // **********************************************
19
-  // *** DON'T MISS: THIS IS HOW WE BOOTSTRAP ***
20
-  // React Native Controllers bootstrap
23
+  // *** DON'T MISS: THIS IS HOW WE BOOTSTRAP *****
24
+  // **********************************************
21
   self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
25
   self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
22
   self.window.backgroundColor = [UIColor whiteColor];
26
   self.window.backgroundColor = [UIColor whiteColor];
23
   [[RCCManager sharedIntance] initBridgeWithBundleURL:jsCodeLocation];
27
   [[RCCManager sharedIntance] initBridgeWithBundleURL:jsCodeLocation];