From 988ad636f28561d5046108e6e3c637f9b438b7c4 Mon Sep 17 00:00:00 2001 From: Sibelius Seraphini Date: Tue, 3 Dec 2019 16:22:48 -0300 Subject: [PATCH] feat(yarn): prefer local react-native insteda of global one using npx --- packages/platform-android/native_modules.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/platform-android/native_modules.gradle b/packages/platform-android/native_modules.gradle index b82f32541..f2667c7a2 100644 --- a/packages/platform-android/native_modules.gradle +++ b/packages/platform-android/native_modules.gradle @@ -183,8 +183,7 @@ class ReactNativeModules { if (this.reactNativeModules != null) return this.reactNativeModules ArrayList> reactNativeModules = new ArrayList>() - def npx = Os.isFamily(Os.FAMILY_WINDOWS) ? "npx.cmd" : "npx" - def command = "${npx} --quiet --no-install react-native config" + def command = "yarn react-native config --silent" /** * Running npx from the directory of the JS app which holds this script in its node_modules. * We do so, because Gradle may be ran with a different directory as CWD, that's outside of JS project