From 899f05f7324969a6f3b5a816245f80d8786150d0 Mon Sep 17 00:00:00 2001 From: Nickolay Toropov Date: Thu, 31 May 2018 13:29:02 +0300 Subject: [PATCH] Updated 'Plugin installation(iOS - CocoaPods)' section in documentation. (#1301) --- docs/setup-ios.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/docs/setup-ios.md b/docs/setup-ios.md index ba659cfe7..b49231ceb 100644 --- a/docs/setup-ios.md +++ b/docs/setup-ios.md @@ -32,9 +32,27 @@ And that's it! Isn't RNPM awesome? :) #### Plugin Installation (iOS - CocoaPods) -1. Add the CodePush plugin dependency to your `Podfile`, pointing at the path where NPM installed it +1. Add the ReactNative and CodePush plugin dependencies to your `Podfile`, pointing at the path where NPM installed it - ```ruby + ``` + # React Native requirements + pod 'React', :path => '../node_modules/react-native', :subspecs => [ + 'Core', + 'CxxBridge', # Include this for RN >= 0.47 + 'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43 + 'RCTText', + 'RCTNetwork', + 'RCTWebSocket', # Needed for debugging + 'RCTAnimation', # Needed for FlatList and animations running on native UI thread + # Add any other subspecs you want to use in your project + ] + # Explicitly include Yoga if you are using RN >= 0.42.0 + pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' + pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' + pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' + pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' + + # CodePush plugin dependency pod 'CodePush', :path => '../node_modules/react-native-code-push' ```