Skip to content

Commit

Permalink
Removes search for local react native to fix expo
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Apr 11, 2019
1 parent 2f8e81b commit 9f73922
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,6 @@ android {
repositories {
google()
jcenter()

def found = false
def parentDir = rootProject.projectDir
def reactNativeAndroidName = 'React Native (Node Modules)'

1.upto(4, {
if (found) return true
parentDir = parentDir.parentFile
def reactNativeAndroid = new File(
parentDir,
'node_modules/react-native/android'
)

if (reactNativeAndroid.exists()) {
maven {
url reactNativeAndroid.toString()
name reactNativeAndroidName
}

println "${project.name}: using React Native sources from ${reactNativeAndroid.toString()}"
found = true
}
})

if (!found) {
throw new GradleException(
"${project.name}: unable to locate React Native Android sources, " +
"ensure you have you installed React Native as a dependency and try again."
)
}
}

dependencies {
Expand Down

0 comments on commit 9f73922

Please sign in to comment.