Skip to content

Commit 93f7328

Browse files
author
Marina Sheenkova
committed
Add podspec for cocoapods installation
1 parent 1f6d7ad commit 93f7328

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"author": "Archriss",
55
"license": "BSD-2-Clause",
66
"repository": "https://github.com/archriss/react-native-render-html",
7+
"homepage": "https://github.com/astrails/react-native-render-html",
78
"description": "React Native component that renders HTML as native views",
89
"keywords": [
910
"react-native",

react-native-render-html.podspec

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

0 commit comments

Comments
 (0)