Need to add a podspec to support react-native .60+ versions
Opened this issue · 1 comments
PreethamAbbur commented
Need to add a podspec to support react-native .60+ versions
AshishFlowerAura commented
you can use this:-
require 'json'
package = JSON.parse(File.read(File.join(dir, 'package.json')))
Pod::Spec.new do |s|
s.name = package['name']
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.authors = 'shimohq'
s.homepage = 'homepage'
s.platform = :ios, "9.0"
s.source = { :git => "https://github.com/shimohq/react-native-cookie.git", :tag => "v#{s.version}" }
s.source_files = "ios/**/*.{h,m}"
s.dependency 'React'
end