react-native-ui-lib icon indicating copy to clipboard operation
react-native-ui-lib copied to clipboard

UIlib-native dependency gradle build error on expo

Open tomangotti opened this issue 3 months ago • 4 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-ui-lib/lib/android/build.gradle b/node_modules/react-native-ui-lib/lib/android/build.gradle
index 5f0b7d6..6026180 100644
--- a/node_modules/react-native-ui-lib/lib/android/build.gradle
+++ b/node_modules/react-native-ui-lib/lib/android/build.gradle
@@ -30,3 +30,9 @@ android {
 dependencies {
     implementation 'com.facebook.react:react-native:+'
 }
+
+afterEvaluate {
+    tasks.matching { it.name == "packageReleaseResources" }.all { task ->
+        task.dependsOn(":uilib-native:generateReleaseResValues")
+    }
+}

This issue body was partially generated by patch-package.

tomangotti avatar Sep 19 '25 20:09 tomangotti

I've tried the same patch-package, but it still doesn't work for me. The error has changed, though. I'll post any other differences or possible solutions here once I find them.

rckmath avatar Sep 20 '25 22:09 rckmath

Yeah, same for me, I tried that diff with patch-package without success.

titanve avatar Sep 24 '25 00:09 titanve

any other solution for this, i have also tried but not works

ErMapsh avatar Nov 06 '25 10:11 ErMapsh

Workaround is posted here: https://github.com/wix/react-native-ui-lib/issues/3805#issuecomment-3322406480

algreat2 avatar Nov 06 '25 11:11 algreat2