Kaynağa Gözat

Error in AppDelegate.m since there was no return statement. (#1945)

Since the docs suggested we remove everything inside the `didFinishLaunchingWithOptions`, without the return statement there was an `Control reaches end of non-void function` error since the function expects a boolean return. After adding this, the error goes away.
Yogesh 7 yıl önce
ebeveyn
işleme
aee6289969
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3
    1
      docs/docs/installation-ios.md

+ 3
- 1
docs/docs/installation-ios.md Dosyayı Görüntüle

@@ -21,4 +21,6 @@ remove everything in the method didFinishLaunchingWithOptions and add:
21 21
 ```
22 22
 NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
23 23
 [ReactNativeNavigation bootstrap:jsCodeLocation launchOptions:launchOptions];
24
-```
24
+
25
+return YES;
26
+```