Add .mm to RCTNetwork subspec
Summary: Without this, `Libraries/Network/RCTNetworking.mm` is not matched, causing a "Native module cannot be null" error when integrating into an existing Swift iOS project. I've tested this fix with an iOS Swift project following the "Integration With Existing Apps" [1] tutorial and the error does not appear. [1] https://facebook.github.io/react-native/docs/integration-with-existing-apps.html Closes https://github.com/facebook/react-native/pull/9904 Differential Revision: D3873011 fbshipit-source-id: d69395190d3865aa1fc87966a37981b53beea115
This commit is contained in:
parent
d0d1712851
commit
25e048ba3a
|
@ -81,7 +81,7 @@ Pod::Spec.new do |s|
|
|||
|
||||
s.subspec 'RCTNetwork' do |ss|
|
||||
ss.dependency 'React/Core'
|
||||
ss.source_files = "Libraries/Network/*.{h,m}"
|
||||
ss.source_files = "Libraries/Network/*.{h,m,mm}"
|
||||
ss.preserve_paths = "Libraries/Network/*.js"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue