Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 899f05f

Browse files
authored
Updated 'Plugin installation(iOS - CocoaPods)' section in documentation. (#1301)
1 parent 9662c85 commit 899f05f

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

docs/setup-ios.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,27 @@ And that's it! Isn't RNPM awesome? :)
3232
3333
#### Plugin Installation (iOS - CocoaPods)
3434
35-
1. Add the CodePush plugin dependency to your `Podfile`, pointing at the path where NPM installed it
35+
1. Add the ReactNative and CodePush plugin dependencies to your `Podfile`, pointing at the path where NPM installed it
3636
37-
```ruby
37+
```
38+
# React Native requirements
39+
pod 'React', :path => '../node_modules/react-native', :subspecs => [
40+
'Core',
41+
'CxxBridge', # Include this for RN >= 0.47
42+
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
43+
'RCTText',
44+
'RCTNetwork',
45+
'RCTWebSocket', # Needed for debugging
46+
'RCTAnimation', # Needed for FlatList and animations running on native UI thread
47+
# Add any other subspecs you want to use in your project
48+
]
49+
# Explicitly include Yoga if you are using RN >= 0.42.0
50+
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
51+
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
52+
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
53+
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
54+
55+
# CodePush plugin dependency
3856
pod 'CodePush', :path => '../node_modules/react-native-code-push'
3957
```
4058

0 commit comments

Comments
 (0)