'react-native-svg' SVG not visible on android

Please provide the following:

  1. SDK Version: 40
  2. Platforms(Android/iOS/web/all): Android

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.