Skip to content

Commit

Permalink
Reference to function confusing and unnecessary (#2959)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
switch13 authored and yogevbd committed Apr 11, 2018
1 parent 033cb61 commit 32fbc88
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/installation-ios.md
Expand Up @@ -14,12 +14,8 @@

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))

5. In Xcode, you will need to edit this file: `AppDelegate.m`. This function is the main entry point for your app:
5. In Xcode, you will need to edit this file: `AppDelegate.m`.

```objc
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... }
```

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)
Replace all of its code with this [reference](https://github.com/wix/react-native-navigation/blob/master/example/ios/example/AppDelegate.m)

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).

0 comments on commit 32fbc88

Please sign in to comment.