Navigation Menu

Skip to content

Commit

Permalink
Updated 'Plugin installation(iOS - CocoaPods)' section in documentati…
Browse files Browse the repository at this point in the history
…on. (#1301)
  • Loading branch information
NickToropov committed May 31, 2018
1 parent 9662c85 commit 899f05f
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions docs/setup-ios.md
Expand Up @@ -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'

This comment has been minimized.

Copy link
@fungilation

fungilation Jun 25, 2018

My Podfile for relevant lines that's been working. Extra modules listed here would be redundant?

  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'   # RN 0.49+
  # https://facebook.github.io/react-native/docs/integration-with-existing-apps.html
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    # 'BatchedBridge',  # Required For React Native 0.45.0+? Deleted in RN 0.54: https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md
    'Core',
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43    fixes https://github.com/facebook/react-native/issues/15775#issuecomment-327971300
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket', # needed for debugging
  ]

This comment has been minimized.

Copy link
@NickToropov
# CodePush plugin dependency
pod 'CodePush', :path => '../node_modules/react-native-code-push'
```

Expand Down

0 comments on commit 899f05f

Please sign in to comment.