mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: The ReactAndroid cmake build assumes that the build directory is ReactAndroid/build, but this is not always the case if gradle is configured with a different build location. Instead of assuming the build location in cmake, pass it from gradle. ## Changelog [Android] [Fixed] - Pass react build dir to cmake Pull Request resolved: https://github.com/facebook/react-native/pull/33736 Test Plan: Tested in an app with a custom build dir that RN now builds properly after this change. In build.gradle add: ```groovy allprojects { buildDir = "${System.getProperty("user.home")}/.gradle/builds/${rootProject.name}/${project.name}" } ``` Reviewed By: christophpurrer Differential Revision: D36128556 Pulled By: cortinico fbshipit-source-id: cdb8283c93ea7c384ec94cd3e24012220965b6dc
Building React Native for Android
See the docs on the wiki.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.