Closed HeroSizy closed 3 months ago
Hello @HeroSizy
If you do:
<SvgUri height="150" width="200" source={require("../image/constant/homer-simpson.svg")}/>
Works?
Hey, got exactly the same problem today on Android emulator ;)
The release is not compatible with React 16 because PropTypes has been removed from the react package. That seems to be fixed in the master branch but I ran into other problems...
(Now it works. Had to apply these fixes to react-native-svg@6.0.0-rc1: https://github.com/react-native-community/react-native-svg/issues/460, https://github.com/react-native-community/react-native-svg/issues/387)
fix the PropTypes ,but another problems
error copied:
import SvgUri from 'react-native-svg-uri';
code: