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:
Andrew Nicolaou 2016-09-15 14:43:38 -07:00 коммит произвёл Facebook Github Bot 2
Родитель d0d1712851
Коммит 25e048ba3a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -81,7 +81,7 @@ Pod::Spec.new do |s|
s.subspec 'RCTNetwork' do |ss| s.subspec 'RCTNetwork' do |ss|
ss.dependency 'React/Core' 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" ss.preserve_paths = "Libraries/Network/*.js"
end end