首页 > 解决方案 > 在 UIManager 中找不到“RCTImageView”

问题描述

我正在使用react-native混合开发,目前在IOS模拟器上报错

Invariant Violation:requireComponent:"RCTImageView" was not found in the UIManager 

RCTImage已添加到 Podfile 文件中,但 pod 安装失败。

标签: react-native

解决方案


如果您使用的是 cocoapods,您应该检查 RCTImage 是否已添加到您的 Podfile 中。

在此处输入图像描述


推荐阅读