From 365622896ed46b8b6938f9da65cc4ddc1cfef3da Mon Sep 17 00:00:00 2001 From: Namit Goel Date: Mon, 16 Mar 2026 13:20:14 +0530 Subject: [PATCH] fix: removing ^ from the react native version --- android/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index ba04995..c307d85 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,7 +22,7 @@ def getRNVersion() { def json = new JsonSlurper().parse(rootPackageFile) def version = json.dependencies["react-native"] ?: json.devDependencies["react-native"] if (version) { - return version + return version.replaceAll(/[\^~]/, "") } } catch (Exception e) { // Ignore parsing errors and continue @@ -48,7 +48,7 @@ def getRNVersion() { if (version == '*' || version.contains('*')) { return "0.80.0" // Default for wildcard versions } - return version + return version.replaceAll(/[\^~]/, "") } } catch (Exception e) { // Ignore parsing errors and continue