Integration With Existing Apps, 我按照教程嵌入本机应用程序,但
# The target name is most likely the name of your project.
target 'NumberTileGame' do
# Your 'node_modules' directory is probably in the root of your project,
# but if not, adjust the `:path` accordingly
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'RCTText',
'RCTNetwork',
'RCTWebSocket', # needed for debugging
# Add any other subspecs you want to use in your project
]
end
如何获取依赖项名称?我停止了一个本机反应项目演示并嵌入到原生iOS应用程序中,但它提示缺少模块。 errorScreenImage。 SomeBody帮忙!
答案 0 :(得分:0)
这是一个依赖项问题,但不是关于cocoapod。错误说你在main.js中使用了react-native-tab-navigator,但它无法找到它。
请关注github自述文件react-native-tab-navigator
或者如果您想要快速解决方案:
npm install react-native-tab-navigator --save

2.看看main.js,你是否从' react-native-tab-navigator'中导入TabNavigator??
如果您需要进一步的帮助,请向他人展示您的代码。