The following APIs have moved to separate packages and importing them from the "expo" package is deprecated: Svg, Svg.ClipPath, Svg.Defs, Svg.G, Svg.LinearGradient, Svg.Rect, Svg.Stop.
Add correct versions of these packages to your project using:
expo install react-native-svg
If "install" is not recognized as an expo command, update your expo-cli installation.
Change your imports so they use specific packages instead of the "expo" package:
Svg.ClipPath -> import { ClipPath } from 'react-native-svg'
Svg.Defs -> import { Defs } from 'react-native-svg'
Svg.G -> import { G } from 'react-native-svg'
Svg.LinearGradient -> import { LinearGradient } from 'react-native-svg'
Svg.Rect -> import { Rect } from 'react-native-svg'
Svg.Stop -> import { Stop } from 'react-native-svg'
import { Svg } from 'expo' -> import * as Svg from 'react-native-svg'
console show that when i use it :
The following APIs have moved to separate packages and importing them from the "expo" package is deprecated: Svg, Svg.ClipPath, Svg.Defs, Svg.G, Svg.LinearGradient, Svg.Rect, Svg.Stop.
Add correct versions of these packages to your project using:
expo install react-native-svg
If "install" is not recognized as an expo command, update your expo-cli installation.
Change your imports so they use specific packages instead of the "expo" package: