Skip to content

Commit d63ce86

Browse files
authored
Merge pull request #55 from oblador/podspec
Add podspec for CocoaPods support
2 parents 51a58dd + 135a2b7 commit d63ce86

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

RNViewShot.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require 'json'
2+
version = JSON.parse(File.read('package.json'))["version"]
3+
4+
Pod::Spec.new do |s|
5+
6+
s.name = "RNViewShot"
7+
s.version = version
8+
s.summary = "Capture a React Native view to an image"
9+
s.homepage = "https://github.com/gre/react-native-view-shot"
10+
s.license = "MIT"
11+
s.author = { "Gaëtan Renaudeau" => "[email protected]" }
12+
s.platform = :ios, "7.0"
13+
s.source = { :git => "https://github.com/gre/react-native-view-shot.git", :tag => "v#{s.version}" }
14+
s.source_files = 'ios/*.{h,m}'
15+
s.preserve_paths = "**/*.js"
16+
s.dependency 'React'
17+
18+
end

0 commit comments

Comments
 (0)