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

Android Build Issue #244

Open SolankiYogesh opened 5 months ago

SolankiYogesh commented 5 months ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch @terrylinla/react-native-sketch-canvas@0.8.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle b/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle
index 31e44f2..8b192f5 100644
--- a/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle
+++ b/node_modules/@terrylinla/react-native-sketch-canvas/android/build.gradle
@@ -28,5 +28,5 @@ android {
 }

 dependencies {
-    provided "com.facebook.react:react-native:+"
+    api "com.facebook.react:react-native:+"
 }

This issue body was partially generated by patch-package.