Please provide the following:
- SDK Version: 40
- Platforms(Android/iOS/web/all): Android
After upgrading to SDK version 40, SVGs are not rendering on android but work fine on iOS.
Please provide the following:
After upgrading to SDK version 40, SVGs are not rendering on android but work fine on iOS.
Could you post some examples? It seems to work OK for me:
When I run your snack directly it works but when I replaced my component with your code this was the output
The documentation says to import Svg as import * as Svg from 'react-native-svg
if you’re using expo so I changed my code accordingly and it’s working now.
import * as SVG from ‘react-native-svg’
const { Svg, Path, G, Rect} = SVG
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.