Recommend npx pod-install for setup instructions

# Summary

We've been recommending devs use `npx pod-install` since it will attempt to install CocoaPods CLI if it's not available on the computer (cite [React Navigation setup guide](https://reactnavigation.org/docs/getting-started/#installing-dependencies-into-a-bare-react-native-project)). This has proved very useful for Expo users who are now migrating to the bare workflow and want to use community packages in their projects.

## Checklist

- [x] I have tested this on a device and a simulator
- [x] I added the documentation in `README.md`
This commit is contained in:
Evan Bacon 2020-05-14 12:27:45 -07:00 committed by GitHub
parent 8ed034e0d8
commit b0667e2b6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
### Mostly automatic installation
`$ react-native link @react-native-community/cameraroll && cd ios && pod install`
`$ react-native link @react-native-community/cameraroll && npx pod-install`
### Manual installation
@ -263,4 +263,4 @@ Returns a Promise which will resolve when the deletion request is completed, or
[supported-os-badge]:https://img.shields.io/badge/platforms-android%20|%20ios-lightgrey.svg?style=flat-square
[license-badge]:https://img.shields.io/npm/l/@react-native-community/cameraroll.svg?style=flat-square
[lean-core-badge]: https://img.shields.io/badge/Lean%20Core-Extracted-brightgreen.svg?style=flat-square
[lean-core-issue]: https://github.com/facebook/react-native/issues/23313
[lean-core-issue]: https://github.com/facebook/react-native/issues/23313