Skip to content

Commit b7654a0

Browse files
authored
Merge pull request #22 from gaoxiaosong/master
Add podspec and update README.
2 parents 7421410 + 691d86c commit b7654a0

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

README.MD

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ Add text or icon watermarks to your images
1414
* npm install react-native-image-marker --save
1515
* react-native link
1616

17+
### iOS Pod Install
18+
19+
You can use `pod` instead of `link`. Add following lines in your `Podfile`:
20+
21+
```
22+
pod 'RNImageMarker', :path => '../node_modules/react-native-image-marker'
23+
```
24+
1725
## API
1826

1927
|name|parameter|return|decription|

RNImageMarker.podspec

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read('package.json'))
4+
5+
Pod::Spec.new do |s|
6+
s.name = "RNImageMarker"
7+
s.version = package['version']
8+
s.summary = package['description']
9+
10+
s.author = { "JimmyDaddy" => "[email protected]" }
11+
s.homepage = package['homepage']
12+
s.license = package['license']
13+
s.platform = :ios, "8.0"
14+
15+
s.source = { :git => "https://github.com/JimmyDaddy/react-native-image-marker.git", :tag => s.version }
16+
s.source_files = 'ios/**/*.{h,m}'
17+
18+
s.dependency 'React'
19+
end

0 commit comments

Comments
 (0)