jayeszee / rn-draw

React native draw tool for react native applications
50 stars 36 forks source link

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

Open anton6 opened 4 years ago

anton6 commented 4 years ago

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?

harveyappleton commented 4 years ago

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 :)