我在我的React Native App中面临着这个警告,如何解决这个建议将是有帮助的。

最佳答案

我的现有本地应用程序遇到了相同的问题。我遵循了Integrating with Existing Apps指南并解决了它。

只需更改Podfile

target 'MyApp' do
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    ...
    'BatchedBridge'
  ]
end


target 'MyApp' do
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    ...
    'CxxBridge'
  ]

  # Third party deps podspec link
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
end

关于ios - RCTBatchedBridge已被弃用,并将在以后的React Native版本中删除,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47328703/

10-09 07:56