mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b9dad7fc0c
Summary: Currently the react-native-gradle-plugin does not allow the "react" plugin extension to already exist when running its apply block. I had a use-case where I wanted to create a new gradle plugin which would take care of applying the react plugin including setting some of its options. Without the change in this PR, this would currently turn into a build failure. ## Changelog: [ANDROID] [FIXED] - prevent error when the "react" extension was already created by another gradle plugin Pull Request resolved: https://github.com/facebook/react-native/pull/43694 Reviewed By: rshest Differential Revision: D55478611 Pulled By: zeyap fbshipit-source-id: cc743a99cb72ed315d21c52597efd5ee92a3be62
@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 onceyarn jest packages/react-native-gradle-plugin.