Skip to content

Commit 6949be6

Browse files
committed
Update documentation with improved Cocoapods workflow
1 parent 16a48ae commit 6949be6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/EmbeddedAppIOS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ Then install your pods:
3535
$ pod install
3636
```
3737

38+
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.
39+
40+
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.
41+
42+
```
43+
pod 'React', :path => './node_modules/react-native',
44+
:subspecs => [
45+
'RCTText'
46+
]
47+
```
48+
3849
## Create Your React Native App
3950

4051
There are two pieces you’ll need to set up:

0 commit comments

Comments
 (0)