Commit 0a1c8064 authored by 7c00's avatar 7c00 Committed by GitHub

完善不同版本下 iOS Podfile 示例代码

parent b36447b4
...@@ -38,7 +38,9 @@ $ react-native link react-native-amap3d ...@@ -38,7 +38,9 @@ $ react-native link react-native-amap3d
``` ```
#### iOS #### iOS
`ios` 目录下新建文件 `Podfile` `ios` 目录下新建文件 `Podfile`
react-native > 0.44:
```ruby ```ruby
platform :ios, '8.0' platform :ios, '8.0'
...@@ -51,6 +53,17 @@ target 'Your Target' do ...@@ -51,6 +53,17 @@ target 'Your Target' do
end end
``` ```
react-native <= 0.44:
```ruby
platform :ios, '8.0'
target 'Your Target' do
pod 'Yoga', path: '../node_modules/react-native/ReactCommon/yoga/'
pod 'React', path: '../node_modules/react-native/'
pod 'react-native-amap3d', path: '../node_modules/react-native-amap3d/'
end
```
然后运行: 然后运行:
``` ```
$ pod install $ pod install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment