rn-draw icon indicating copy to clipboard operation
rn-draw copied to clipboard

Device: (857:881) undefined is not an object (evaluating 'd.Svg.G')

Open anton6 opened this issue 4 years ago • 1 comments

Trying to run on expo v37 with "react-native-svg": "12.1.0" and getting error: Device: (857:881) undefined is not an object (evaluating 'd.Svg.G')

Am I using incompatible expo version or maybe unsupported react-native-svg version?

anton6 avatar May 07 '20 02:05 anton6

Hey @anton6, I had same issue as you. I'm using expo SDK 37 but in a bare workflow. Issue is due to rn-draw requiring expo.svg (see src/config.js) - when expo are now decentralising their packages out. So rn-draw should be using react-native-svg really.

I forked the package and changed this - have a look. You can use my fork if you want. If you add to your package.json dependencies: "rn-draw": "https://github.com/harveyappleton/rn-draw/tarball/945769effad1de849f6fc4057c50669cb24a11e6"

and then run npm install

it should work :)

harveyappleton avatar May 14 '20 16:05 harveyappleton