Browse Source

[docs] Update setup for macOS

Eloy Durán 4 years ago
parent
commit
1748e72187
1 changed files with 5 additions and 11 deletions
  1. 5
    11
      docs/Getting-Started.md

+ 5
- 11
docs/Getting-Started.md View File

@@ -28,16 +28,16 @@ $ react-native link react-native-webview
28 28
 
29 29
 _NOTE: If you ever need to uninstall React Native WebView, run `react-native unlink react-native-webview` to unlink it._
30 30
 
31
-### iOS:
31
+### iOS & macOS:
32 32
 
33
-If using cocoapods in the `ios/` directory run
33
+If using CocoaPods, in the `ios/` or `macos/` directory run:
34 34
 
35 35
 ```
36 36
 $ pod install
37 37
 ```
38 38
 
39
-For iOS, while you can manually link the old way using [react-native own tutorial](https://reactnative.dev/docs/linking-libraries-ios), we find it easier to use cocoapods.
40
-If you wish to use cocoapods and haven't set it up yet, please instead refer to [that article](https://engineering.brigad.co/demystifying-react-native-modules-linking-ae6c017a6b4a).
39
+While you can manually link the old way using [react-native own tutorial](https://reactnative.dev/docs/linking-libraries-ios), we find it easier to use CocoaPods.
40
+If you wish to use CocoaPods and haven't set it up yet, please instead refer to [that article](https://engineering.brigad.co/demystifying-react-native-modules-linking-ae6c017a6b4a).
41 41
 
42 42
 ### Android:
43 43
 
@@ -54,12 +54,6 @@ android.enableJetifier=true
54 54
 
55 55
 For Android manual installation, please refer to [this article](https://engineering.brigad.co/demystifying-react-native-modules-linking-964399ec731b) where you can find detailed step on how to link any react-native project.
56 56
 
57
-### macOS:
58
-
59
-Cocoapod and autolinking is not yet support for react-native macOS but is coming soon. In the meantime you must manually link.
60
-
61
-The method is nearly identical to the [manual linking method for iOS](https://reactnative.dev/docs/linking-libraries-ios#manual-linking) except that you will include the `node_modules/react-native-webview/macos/RNCWebView.xcodeproj` project in your main project and link the `RNCWebView-macOS.a` library.
62
-
63 57
 ### Windows:
64 58
 
65 59
 Autolinking is not yet supported for ReactNativeWindows. Make following additions to the given files manually:
@@ -77,7 +71,7 @@ Add the `ReactNativeWebView` project to your solution.
77 71
 Add a reference to `ReactNativeWebView` to your main application project. From Visual Studio 2019:
78 72
 
79 73
 1. Right-click main application project > Add > Reference...
80
-  Check `ReactNativeWebView` from Solution Projects.
74
+   Check `ReactNativeWebView` from Solution Projects.
81 75
 
82 76
 2. Modify files below to add the package providers to your main application project
83 77