diff --git a/website/contributing/how-to-build-from-source.md b/website/contributing/how-to-build-from-source.md index f11c40c64c8..fe54f579b0c 100644 --- a/website/contributing/how-to-build-from-source.md +++ b/website/contributing/how-to-build-from-source.md @@ -29,13 +29,14 @@ Both with stable releases and nightlies, you will be consuming **precompiled** a ```diff // ... include ':app' - includeBuild('../node_modules/react-native-gradle-plugin') + includeBuild('../node_modules/@react-native/gradle-plugin') + + includeBuild('../node_modules/react-native') { + dependencySubstitution { -+ substitute(module("com.facebook.react:react-android")).using(project(":ReactAndroid")) -+ substitute(module("com.facebook.react:react-native")).using(project(":ReactAndroid")) -+ substitute(module("com.facebook.react:hermes-android")).using(project(":ReactAndroid:hermes-engine")) -+ substitute(module("com.facebook.react:hermes-engine")).using(project(":ReactAndroid:hermes-engine")) ++ substitute(module("com.facebook.react:react-android")).using(project(":packages:react-native:ReactAndroid")) ++ substitute(module("com.facebook.react:react-native")).using(project(":packages:react-native:ReactAndroid")) ++ substitute(module("com.facebook.react:hermes-android")).using(project(":packages:react-native:ReactAndroid:hermes-engine")) ++ substitute(module("com.facebook.react:hermes-engine")).using(project(":packages:react-native:ReactAndroid:hermes-engine")) + } + } ```