terrylinla / react-native-sketch-canvas

A React Native component for drawing by touching on both iOS and Android.
MIT License
691 stars 450 forks source link

* What went wrong: A problem occurred evaluating project ':@terrylinla_react-native-sketch-canvas'. > Could not find method provided() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. #234

Open Arnav7501 opened 1 year ago

Arnav7501 commented 1 year ago

Please fix this issue in the newest release, i have to change the "provided" to "implementation" every time i run yarn install

a-straetman commented 1 year ago

patch-package allows you to automate this.

Simply make the change once manually and then run npx patch-package @terrylinla/react-native-sketch-canvas. This will create a patch file under a new folder patches in the root of your project.

In your package.json, under scripts, add

{
  // ... the rest of your scripts
  "postinstall": "patch-package"
}

This will apply the patch each time you yarn install