Skip to content

Commit 3248e44

Browse files
committed
append useful documentation about using cocoapods
1 parent c98e498 commit 3248e44

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@ Assuming you have all the requirements installed, you can setup and run the proj
9898

9999
### Deployment
100100

101-
[Distributing beta builds](docs/beta%20builds.md)
101+
- Using [Fastlane](https://fastlane.tools/) to automate builds and store deployments (iOS and Android)
102+
- [Distributing beta builds](docs/beta%20builds.md)
102103

103104

104105
### Package dependencies
105106

106-
[Using CocoaPods to manage your packages](docs/setup%20cocoapods.md)
107+
- You may want to use [CocoaPods](https://cocoapods.org/) to manage your dependencies (iOS only)
108+
- [Using CocoaPods to manage your package dependencies](docs/setup%20cocoapods.md)
107109

108110
## License
109111

docs/setup cocoapods.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# Setup CocoaPods
22

33
[CocoaPods](https://cocoapods.org/) is a package management tool for iOS and macOS development.
4-
You can use it to add the actual React Native framework code into our project, and especially to manage thirdparties packages.
4+
You can use it to add the actual React Native framework code into our project, and especially to manage thirdparty packages.
55

66
In this boilerplate, we don't want to make CocoaPods as a required tool.
77
But if you planned to manage a lot of thirdparty dependencies, it should be a really good idea to follow this guide.
88

9-
Finally, I didn't specify it yet, but this tool is for iOS dependencies only. On Android, react-native linking is enought.
10-
11-
_You can read more why using CocoaPods can help you to avoid a lot of constraints [on this great article](https://engineering.brigad.co/demystifying-react-native-modules-linking-ae6c017a6b4a) from Brigad._
9+
Finally, we didn't specify it yet, but this tool is for iOS dependencies only. On Android, `react-native linking` seems to be enought.
1210

1311

1412
## Setup CocoaPods
@@ -19,7 +17,7 @@ brew install cocoapods
1917
```
2018

2119
Then simply create a `Podfile` file, which will be the configuration file of all your dependencies.
22-
The easiest way is bu running :
20+
The easiest way is by running :
2321
```bash
2422
cd ios
2523
pod init
@@ -30,7 +28,7 @@ pod init
3028
### React Native framework
3129

3230
One of the main thing you must know about using CocoaPods, is that we need to manage React itself as a pod dependency to make it works well.
33-
It means that you can decide what parts of React Native framework you would like to integrate into your app. So you must not forget to append each React Native `subspec` inside the [podfile]().
31+
It means that you can decide what parts of React Native framework you would like to integrate into your app. So you must not forget to append each React Native `subspec` inside the `Podfile`.
3432
This part is fully explained in the [official React Native documentation](https://facebook.github.io/react-native/docs/integration-with-existing-apps#configuring-cocoapods-dependencies)
3533

3634
So, add the following into your `Podfile` :
@@ -85,4 +83,11 @@ That's all ! :tada:
8583

8684

8785
- You must always use the `.xcworkspace` file inside Xcode instead of the `.xcodeproj` one.
88-
- Sometimes, running `react-native link will automatically try to perform a pod install. Read carefuly each thirdparty package install doc.
86+
- Sometimes, running `react-native link will automatically try to perform a pod install. Read carefuly each thirdparty package install doc.`
87+
88+
---
89+
90+
More resources :
91+
- [Demystifying react-native modules linking](https://engineering.brigad.co/demystifying-react-native-modules-linking-ae6c017a6b4a)
92+
- [Configuring CocoaPods dependencies](https://facebook.github.io/react-native/docs/integration-with-existing-apps#configuring-cocoapods-dependencies)
93+
- [Beginner’s Guide to Using CocoaPods with React Native](https://shift.infinite.red/beginner-s-guide-to-using-cocoapods-with-react-native-46cb4d372995)

0 commit comments

Comments
 (0)