Skip to content

Commit

Permalink
fix - monorepo build (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Titozzz authored Dec 21, 2023
1 parent 6a681db commit 70793d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 70793d4

Please sign in to comment.