Browse files

Simplify react-native overrides when building from source

You may want to double-check that this works perfectly (I am trying to move away from RN-from-source, since my changes were upstreamed), but it seems to build without errors for me. And this has the advantage of working seamlessly with "rnpm", which isn't smart enough to add these excludes when linking modules.
Closes #9954

Differential Revision: D4074059

fbshipit-source-id: e152945ea66605698c18c1d0d078fbf312f1658e
  • Loading branch information...
mikelambert authored and Facebook Github Bot committed Oct 25, 2016
1 parent f930270 commit cd6f9f95d2aab0b8b9ec02070b18a38a18921c91
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/
@@ -116,10 +116,10 @@ dependencies {
If you use 3rd-party React Native modules, you need to override their dependencies so that they don't bundle the pre-compiled library. Otherwise you'll get an error while compiling - `Error: more than one library with package name 'com.facebook.react'`.
Modify your `android/app/build.gradle` and replace `compile project(':react-native-custom-module')` with:
Modify your `android/app/build.gradle`, and add:
compile(project(':react-native-custom-module')) {
configurations.all {
exclude group: 'com.facebook.react', module: 'react-native'

0 comments on commit cd6f9f9

Please sign in to comment.