RCTBatchedBridge 已弃用,将在未来的 React Native 版本中删除 [英] RCTBatchedBridge is deprecated and will be removed in a future React Native release
本文介绍了RCTBatchedBridge 已弃用,将在未来的 React Native 版本中删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 React Native App 中遇到此警告,如何解决此问题,任何建议都会有所帮助.
I am facing this warning in my react Native App, How to solve this any suggestion would be helpful.
推荐答案
我的现有本机应用遇到了同样的问题.我遵循了与现有应用程序集成指南和解决了.
I had the same problem with my existing native app. I followed the Integrating with Existing Apps guide and solved it.
只需更改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
这篇关于RCTBatchedBridge 已弃用,将在未来的 React Native 版本中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文