react-native-svg: "TypeError": "Network request failed"
I got this error when importing local svg file using svgUri <SvgUri width=“100%” height=“100%” uri={require(‘…/…/assets/icons/logo.svg’)} />`
`
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 10
- Comments: 20 (2 by maintainers)
Commits related to this issue
- Fix: WithLocalSvg + data uri is not shown well in Android Related issue: https://github.com/software-mansion/react-native-svg/issues/1318#issuecomment-665846082 — committed to tourze/react-native-svg by tourze 4 years ago
- feat: support dataUri for android platform (#2396) # Summary Closes #1318 Add support data URI in the Android platform. It already works on the iOS platform. | Before1 | Before2 | After | |---... — committed to software-mansion/react-native-svg by bohdanprog 2 years ago
I’m getting “Network request failed” when I attempt to load a svg using a data uri on android. This works on iOS.
Can you describe how to solve it, thanks
getting this on iOS
I’m currently having the same issue on iPhone 13, iOS 16.4: Console Error: Network request failed