【发布时间】:2017-12-06 11:11:31
【问题描述】:
经过几天的互联网研究,我仍然没有解决我的问题。 我正在使用 react-native-svg 并且我遇到了同样的问题: No component found for view with the name "RNSVGPath"
或者这个: Invariant Violation: Native component for "RNSVGSvgView" does not exist
我尝试了很多东西,包括:
react-native unlink react-native-svg
npm uninstall react-native-svg
npm install react-native-svg
react-native link react-native-svg
react-native run-ios
还有:
pod 'RNSVG', :path => '../node_modules/react-native-svg'
rm -rf node_modules
npm install
react-native run-ios
但还是没有... 这是我正在使用的版本:
"dependencies": {
"react": "16.1.1",
"react-native": "0.50.3",
"react-native-svg": "^6.0.1-rc.1"
}
我尝试直接从 XCode 构建它,但仍然没有...
感谢你们的帮助!
【问题讨论】:
标签: ios svg react-native react-native-ios