Member-only story
Explained React Native Gradle Plugin
Not a Medium Member? “Read For Free”
Ever opened android/app/build.gradle in your React Native app and wondered what apply plugin: "com.facebook.react" really does? That one line is the React Native Gradle Plugin, or RNGP for short.
In simple words, RNGP is the helper that turns your JavaScript code and your Android code into one working app. It bundles your JS, sets up the right libraries, and gets everything ready for release.
Do I need to install it?
No. The plugin comes as a separate NPM package, but it is installed for you when you install react-native. If you made your app with npx react-native init, it is already set up.
It works out of the box with sensible defaults. You only need to change things if your project is special, for example a monorepo or an app with many build types.
To change the settings, open android/app/build.gradle and edit the react block:
apply plugin: "com.facebook.react"
react {
// Custom configuration goes here.
}That empty block is where all the settings below go.








