gpt4 book ai didi

ios - 不变违规 : Native component for "RCTImageView" does not exist

转载 作者:可可西里 更新时间:2023-11-01 05:32:38 37 4
gpt4 key购买 nike

我在 Xcode 中创建了带有一个“主”页面的原生项目,项目的其余部分我想在 React Native 中完成。在我尝试使用 <Image> 之前一切都很顺利JSX 中的标记。我试图找到解决方案,但没有效果。

如果我完全在 React Native 中创建项目(Xcode 中没有现有部分)<Image>标签完美运行。

enter image description here

最佳答案

我想出了问题出在哪里。我没有将“RCTImage”添加到我的 Podfile

    pod 'React', :path => './node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
'RCTImage', // <- this component was missing
]

关于ios - 不变违规 : Native component for "RCTImageView" does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47759058/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com