Commit bea22ec3 authored by zooble's avatar zooble Committed by GitHub

Merge pull request #165 from troyz/master

Make it possible to integration with an existing ios app
parents c5d4b22a 96756f18
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
s.name = 'Picker'
s.version = package['version'].gsub(/v|-beta/, '')
s.summary = package['description']
s.author = package['author']
s.license = package['license']
s.homepage = package['homepage']
s.source = { :git => 'https://github.com/beefe/react-native-picker.git', :tag => "v#{s.version}"}
s.platform = :ios, '7.0'
s.preserve_paths = '*.js'
s.dependency 'React'
s.subspec 'Core' do |ss|
ss.source_files = 'ios/RCTBEEPickerManager/*.{h,m}'
ss.public_header_files = ['ios/RCTBEEPickerManager/*.h']
end
end
...@@ -80,6 +80,23 @@ ...@@ -80,6 +80,23 @@
``` ```
### Integration With Existing Apps (`iOS`)
The `Podfile` will like below:
``` ruby
platform :ios, '8.0'
target 'YourTarget' do
pod 'React', :path => '../YOUR_REACT_NATIVE_PROJECT/node_modules/react-native', :subspecs => [
'Core',
...
]
pod 'Picker', :path => '../YOUR_REACT_NATIVE_PROJECT/node_modules/react-native-picker'
end
```
After you have updated the `Podfile` of the existing app, you can install `react-native-picker` like below:
``` bash
$ pod install
```
### Notice ### Notice
#### support two modes: #### support two modes:
......
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