【问题标题】:ERROR Invariant Violation: requireNativeComponent: "RNSVGLinearGradient" was not found in the UIManager. IOS React Native错误不变违规:requireNativeComponent:在 UIManager 中找不到“RNSVGLinearGradient”。 IOS React Native
【发布时间】:2021-04-14 14:25:15
【问题描述】:

我试图在我的应用程序中使用QRCode,但我遇到了一些错误 我安装了

yarn add react-native-svg react-native-qrcode-svg

那么 react-native link react-native-svg

然后cd ios && pod install

我正面临这个错误

我还清理了缓存并删除了守望者,但这对我来说并没有锻炼

任何线索是什么问题或解决方案?

【问题讨论】:

    标签: reactjs xcode react-native redux


    【解决方案1】:

    安装 react-native-svg 后好像还没有重建原生代码,试试运行 react-native run-ios 或 react-native run-android

    【讨论】:

      猜你喜欢
      • 2022-10-23
      • 2021-02-22
      • 1970-01-01
      • 1970-01-01
      • 2020-05-06
      • 2019-08-27
      • 2020-09-02
      • 2021-06-29
      • 1970-01-01
      相关资源
      最近更新 更多