Browse Source

Reference to function confusing and unnecessary (#2959)

Removed reference to - (BOOL)application:(UIApplication *)application... The way it's worded makes it seem like you only need to overwrite what's in the function, not the entire file's code.
switch13 6 years ago
parent
commit
32fbc88388
1 changed files with 2 additions and 6 deletions
  1. 2
    6
      docs/installation-ios.md

+ 2
- 6
docs/installation-ios.md View File

@@ -14,12 +14,8 @@
14 14
 
15 15
 4. In Xcode, in Project Navigator (left pane), click on your project (top), then click on your *project* row (on the "project and targets list") and select the `Build Settings` tab (right pane). In the `Header Search Paths` section add `$(SRCROOT)/../node_modules/react-native-navigation/ios`. Make sure on the right to mark this new path `recursive` ([screenshots](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#step-3))
16 16
 
17
-5. In Xcode, you will need to edit this file: `AppDelegate.m`. This function is the main entry point for your app:
17
+5. In Xcode, you will need to edit this file: `AppDelegate.m`. 
18 18
 
19
-    ```objc
20
-    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... }
21
-    ```
22
-
23
-    Its content must be replaced with the content of this [reference](https://github.com/wix/react-native-navigation/blob/master/example/ios/example/AppDelegate.m)
19
+    Replace all of its code with this [reference](https://github.com/wix/react-native-navigation/blob/master/example/ios/example/AppDelegate.m)
24 20
 
25 21
     Replace `@"index.ios"` with `@"index"` if you are using `index.js` as your entry point instead of `index.ios.js` and `index.android.js` (it is the default since React Native 0.49).