Open irene-hakes opened 5 years ago
yes. I think the problem might be because for some reason the package is downloaded to node_modules
under @terrylinla/
, causing the config done by react-native link
to be wrong.
There are 2 options:
Your package.json
dependcy should look like this:
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
Change it to this:
"react-native-sketch-canvas": "github:terrylinla/react-native-sketch-canvas",
and run npm install
or yarn add
on android change this file settings.gradle
:
include ':react-native-sketch-canvas'
project(':react-native-sketch-canvas').projectDir = new File(rootProject.projectDir, '../node_modules/@terrylinla/react-native-sketch-canvas/android')
Haven't worked on ios yet but you should do something equivelant.
Trying to use this in my native-react app. I get the error:
any ideas what may be causing this?