[ad_1]
I’ve created React Native boilerplate app utilizing:
npx react-native init MyApp --template react-native-template-typescript
After this I added a podSpec file to the basis as proven under:
require "json"
bundle = JSON.parse(File.learn(File.be part of(__dir__, "bundle.json")))
Pod::Spec.new do |s|
s.title = bundle["title"]
s.model = bundle["version"]
s.abstract = bundle["description"]
s.description = <<-DESC
react-native-test-module
DESC
s.homepage = bundle["homepage"]
# temporary license entry:
# elective - use expanded license entry as an alternative:
s.license = "MIT"
s.authors = { bundle["authors"] => bundle["contact"] }
s.platforms = { :ios => "9.0" }
s.supply = { :git => "https://github.com/github_account/react-native-test-module.git", :tag => "#{s.model}" }
s.source_files = "ios/**/*.{h,c,cc,cpp,m,mm,swift}"
s.requires_arc = true
# ...
# s.dependency "..."
s.dependency "React"
finish
And I’m together with this pod into one other ios App by:
pod 'MyApp', :git => 'https://github.com/shivam-rallyhealth/rn-content-megazord', :tag => '0.0.19'
After I do pod set up --repo-update for some purpose, it installs all of the information, however not the pod dependencies and so After I do a construct, I get this error:
#import <React/RCTBridgeDelegate.h> 'React/RCTBridgeDelegate.h' file not discovered
How do I modify my podSpec such that every one the pods additionally will get put in and never simply the module information?
Please word that I’m very effectively in a position to construct the venture that lies inside ios listing of the React Native boilerplate. The issue comes when I attempt to outsource it to a different current app after which use it there.
[ad_2]
