Przeglądaj źródła

Fix numbering on doc instructions (#5360)

Current numbering causes the line 
```In Xcode, you will need to edit this file: AppDelegate.m. This function is the main entry point for your app:```
to appear as instruction 1, not 3.
Jacob Jaffe 5 lat temu
rodzic
commit
af41b4fed6
1 zmienionych plików z 25 dodań i 26 usunięć
  1. 25
    26
      docs/docs/Installing.md

+ 25
- 26
docs/docs/Installing.md Wyświetl plik

@@ -17,14 +17,14 @@
17 17
 
18 18
 2. In Xcode, in Project Navigator (left pane), click on your project (top), then click on your *target* row (on the "project and targets list", which is on the left column of the right pane) and select the `Build Phases` tab (right pane). In the `Link Binary With Libraries` section add `libReactNativeNavigation.a` ([screenshots](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#step-2)).
19 19
 
20
-2b. If you're seeing an error message in Xcode such as:
21
-```
22
-'ReactNativeNavigation/ReactNativeNavigation.h' file not found.
23
-```
24
-You may also need to add a Header Search Path: ([screenshots](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#step-3)).
25
-```objectivec
26
-$(SRCROOT)/../node_modules/react-native-navigation/lib/ios
27
-```
20
+	a. If you're seeing an error message in Xcode such as:
21
+	```
22
+	'ReactNativeNavigation/ReactNativeNavigation.h' file not found.
23
+	```
24
+	You may also need to add a Header Search Path: ([screenshots](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#step-3)).
25
+	```objectivec
26
+	$(SRCROOT)/../node_modules/react-native-navigation/lib/ios
27
+	```
28 28
 
29 29
 3. In Xcode, you will need to edit this file: `AppDelegate.m`. This function is the main entry point for your app:
30 30
 
@@ -54,25 +54,24 @@ $(SRCROOT)/../node_modules/react-native-navigation/lib/ios
54 54
 	@end
55 55
 	```
56 56
 
57
-3a. If, in Xcode, you see the following error message in `AppDelegate.m` next to `#import "RCTBundleURLProvider.h"`:
58
-```
59
-! 'RCTBundleURLProvider.h' file not found
60
-```
61
-This is because the `React` scheme is missing from your project. You can verify this by opening the `Product` menu and the `Scheme` submenu.
62
-
63
-To make the `React` scheme available to your project, run `npm install -g react-native-git-upgrade` followed by `react-native-git-upgrade`. Once this is done, you can click back to the menu in Xcode: `Product -> Scheme -> Manage Schemes`, then click '+' to add a new scheme. From the `Target` menu, select "React", and click the checkbox to make the scheme `shared`. This should make the error disappear.
57
+a. If, in Xcode, you see the following error message in `AppDelegate.m` next to `#import "RCTBundleURLProvider.h"`: 
58
+	```
59
+	! 'RCTBundleURLProvider.h' file not found
60
+	```
61
+	This is because the `React` scheme is missing from your project. You can verify this by opening the `Product` menu and the `Scheme` submenu. 
62
+	To make the `React` scheme available to your project, run `npm install -g react-native-git-upgrade` followed by `react-native-git-upgrade`. Once this is done, you can click back to the menu in Xcode: `Product -> Scheme -> Manage Schemes`, then click '+' to add a new scheme. From the `Target` menu, select "React", and click the checkbox to make the scheme `shared`. This should make the error disappear.
64 63
 
65
-3b. If, in Xcode, you see the following warning message in `AppDelegate.m` next to `#import "@implementation AppDelegate"`:
66
-```
67
-Class 'AppDelegate' does not conform to protocol 'RCTBridgeDelegate'
68
-```
69
-You can remove `RCTBridgeDelegate` from this file: `AppDelegate.h`:
70
-```diff
71
-- #import <React/RCTBridgeDelegate.h>
72
-- @interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
73
-+ @interface AppDelegate : UIResponder <UIApplicationDelegate>
74
-	...
75
-```
64
+	b. If, in Xcode, you see the following warning message in `AppDelegate.m` next to `#import "@implementation AppDelegate"`:
65
+	```
66
+	Class 'AppDelegate' does not conform to protocol 'RCTBridgeDelegate'
67
+	```
68
+	You can remove `RCTBridgeDelegate` from this file: `AppDelegate.h`:
69
+	```diff
70
+	- #import <React/RCTBridgeDelegate.h>
71
+	- @interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
72
+	+ @interface AppDelegate : UIResponder <UIApplicationDelegate>
73
+		...
74
+	```
76 75
 
77 76
 ### Installation with CocoaPods
78 77