Updated 'Plugin installation(iOS - CocoaPods)' section in documentation. (#1301)
This commit is contained in:
Родитель
9662c85ba6
Коммит
899f05f732
|
@ -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'
|
||||
```
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче