From 70793d4eb2c1b19c11a6fb2130658de73178dce9 Mon Sep 17 00:00:00 2001 From: Thibault Malbranche Date: Thu, 21 Dec 2023 13:06:33 +0100 Subject: [PATCH] fix - monorepo build (#217) --- android/build.gradle | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index b4f005ca..29168a41 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -27,9 +27,10 @@ def resolveReactNativeDirectory() { return reactNativeFromProjectNodeModules } - def reactNativeFromNodeModulesWithLibrary = file("${projectDir}/../../react-native") - if (reactNativeFromNodeModulesWithLibrary.exists()) { - return reactNativeFromNodeModulesWithLibrary + // This code is taken from react-native-reanimated, but with an extra "../" due to @react-native-cliploard/clipboard being in a subdirectory + def reactNativeFromNodeModulesWithReactNativeClipboard = file("${projectDir}/../../../react-native") + if (reactNativeFromNodeModulesWithReactNativeClipboard.exists()) { + return reactNativeFromNodeModulesWithReactNativeClipboard } throw new Exception(