React native 引用自定义组件报错 rnsvgcircle was not found in the uimanager 解决方法
打开`android/app/src/main/java/[…]/MainApplication.java

添加 new SvgPackage() React native 引用自定义组件报错 rnsvgcircle was not found in the uimanager 解决方法

setting.gradle中添加
include ‘:react-native-svg’
project(’:react-native-svg’).projectDir = new File(rootProject.projectDir, ‘…/node_modules/react-native-svg/android’)
React native 引用自定义组件报错 rnsvgcircle was not found in the uimanager 解决方法
build.gradle中添加依赖
implementation project(’:react-native-svg’)
React native 引用自定义组件报错 rnsvgcircle was not found in the uimanager 解决方法
按上述步骤成功解决报错,希望可以帮到再次遇到的朋友

相关文章:

  • 2022-12-23
  • 2022-01-23
  • 2021-05-26
  • 2021-08-15
  • 2021-04-13
  • 2022-01-19
  • 2022-12-23
  • 2021-11-21
猜你喜欢
  • 2021-11-18
  • 2022-01-23
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
相关资源
相似解决方案