```ruby
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
  s.name         = "BugsnagReactNative"
  s.version      = package["version"]
  s.summary      = package["description"]
  s.description  = "Bugsnag crash and error reporting for React Native apps"
  s.homepage     = "https://github.com/bugsnag/"
  s.license      = "MIT"
  s.author       = { "Bugsnag" => "platforms@bugsnag.com" }
  s.platform     = :ios, "7.0"
  s.source       = { :git => "https://github.com/bugsnag/bugsnag-js.git", :tag => "v#{s.version}" }
  s.source_files = "ios/BugsnagReactNative/**/*.{h,m}",
                   "ios/vendor/bugsnag-cocoa/**/*.{h,mm,m,cpp,c}",
  s.public_header_files = "ios/vendor/bugsnag-cocoa/Bugsnag/**/*.h"
  s.header_dir = 'Bugsnag'
  s.requires_arc = true
  s.dependency "React"
  #s.dependency "others"
end
```

Copy public_header_paths from bugsnag-cocoa podspec
user
```ruby
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
bugsnag_cocoa_podspec = JSON.parse(File.read(File.join(__dir__, "ios", "vendor", "bugsnag-cocoa", "Bugsnag.podspec.json")))

Pod::Spec.new do |s|
  s.name         = "BugsnagReactNative"
  s.version      = package["version"]
  s.summary      = package["description"]
  s.description  = "Bugsnag crash and error reporting for React Native apps"
  s.homepage     = "https://github.com/bugsnag/"
  s.license      = "MIT"
  s.author       = { "Bugsnag" => "platforms@bugsnag.com" }
  s.platform     = :ios, "7.0"
  s.source       = { :git => "https://github.com/bugsnag/bugsnag-js.git", :tag => "v#{s.version}" }
  s.source_files = "ios/BugsnagReactNative/**/*.{h,m}",
                   "ios/vendor/bugsnag-cocoa/**/*.{h,mm,m,cpp,c}",
 s.public_header_files =
   bugsnag_cocoa_podspec["public_header_files"]
     .map { |str| "ios/vendor/bugsnag-cocoa/#{str}" }
     .join(',')
  s.header_dir = 'Bugsnag'
  s.requires_arc = true
  s.dependency "React"
  #s.dependency "others"
end
```
assistant