mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50470 This diff introduces a new property called `legacyWarningsEnabled` for `gradle.properties` that toggles the Legacy Arch warnings for users. I've also introduced a new `ReactNativeApplicationEntryPoint` that is generated by RNGP. This class effectively wrap `DefaultNewArchitectureEntryPoint` by setting warnings and also invoking SoLoader. It will reduce the errors in the user space. As of now warnigns appear in Logcat, but I'm looking into adding some UI in a subsequent diff. Changelog: [Android] [Added] - Add a `legacyWarningsEnabled` property to enable Legacy Warnings on NewArch Reviewed By: mdvacca Differential Revision: D72383907 fbshipit-source-id: bcd659a23ec5b468958124f0f6650ff72d01ce81
@react-native/gradle-plugin
A Gradle Plugin used to support development of React Native applications for Android.
Installation
yarn add @react-native/gradle-plugin
Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like
Testing
To run the tests in this package, run the following commands from the React Native root folder:
yarnto install the dependencies. You just need to run this once./gradlew -p packages/gradle-plugin test.