mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 23:55:23 +00:00
Update documentation with improved Cocoapods workflow
This commit is contained in:
parent
16a48ae0c3
commit
6949be63e4
@ -35,6 +35,17 @@ Then install your pods:
|
||||
$ pod install
|
||||
```
|
||||
|
||||
If you are installing React Native locally via npm then you will end up with duplicate local React Native installations as both Cocoapods and npm creates a local install of React Native. This can result in issues when trying to bundle your code as the packager will find duplicate modules and throw an error.
|
||||
|
||||
To resolve this issue have your `Podfile` reference the React Native installation from npm's `node_modules` folder. Also be sure to include all subspecs that you want to have installed.
|
||||
|
||||
```
|
||||
pod 'React', :path => './node_modules/react-native',
|
||||
:subspecs => [
|
||||
'RCTText'
|
||||
]
|
||||
```
|
||||
|
||||
## Create Your React Native App
|
||||
|
||||
There are two pieces you’ll need to set up:
|
||||
|
Loading…
x
Reference in New Issue
Block a user