ソースを参照

[docs] Update setup for macOS

Eloy Durán 5 年 前
コミット
1748e72187
共有1 個のファイルを変更した5 個の追加11 個の削除を含む
  1. 5
    11
      docs/Getting-Started.md

+ 5
- 11
docs/Getting-Started.md ファイルの表示

28
 
28
 
29
 _NOTE: If you ever need to uninstall React Native WebView, run `react-native unlink react-native-webview` to unlink it._
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
 $ pod install
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
 ### Android:
42
 ### Android:
43
 
43
 
54
 
54
 
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.
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
 ### Windows:
57
 ### Windows:
64
 
58
 
65
 Autolinking is not yet supported for ReactNativeWindows. Make following additions to the given files manually:
59
 Autolinking is not yet supported for ReactNativeWindows. Make following additions to the given files manually:
77
 Add a reference to `ReactNativeWebView` to your main application project. From Visual Studio 2019:
71
 Add a reference to `ReactNativeWebView` to your main application project. From Visual Studio 2019:
78
 
72
 
79
 1. Right-click main application project > Add > Reference...
73
 1. Right-click main application project > Add > Reference...
80
-  Check `ReactNativeWebView` from Solution Projects.
74
+   Check `ReactNativeWebView` from Solution Projects.
81
 
75
 
82
 2. Modify files below to add the package providers to your main application project
76
 2. Modify files below to add the package providers to your main application project
83
 
77