From 6949be63e408da249d9c445939d18dcc3f8a76fc Mon Sep 17 00:00:00 2001 From: Harry Wolff Date: Sun, 18 Oct 2015 09:48:48 -0400 Subject: [PATCH] Update documentation with improved Cocoapods workflow --- docs/EmbeddedAppIOS.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/EmbeddedAppIOS.md b/docs/EmbeddedAppIOS.md index cc4f91a21..df93bcddf 100644 --- a/docs/EmbeddedAppIOS.md +++ b/docs/EmbeddedAppIOS.md @@ -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: