From 8b3a7a1cb3b58435e32b2fd2560d517efe5f6b9a Mon Sep 17 00:00:00 2001 From: lzw Date: Sat, 22 Jul 2017 07:59:05 +0800 Subject: [PATCH] Configure react native android library to use npm installed react-native. Because the last released version in Maven Repo is 0.20.1. --- templates/android.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/android.js b/templates/android.js index fd243f9..1181226 100644 --- a/templates/android.js +++ b/templates/android.js @@ -29,7 +29,12 @@ android { } repositories { - mavenCentral() + mavenLocal() + jcenter() + maven { + // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm + url "$projectDir/../../../node_modules/react-native/android" + } } dependencies {