Socket
Socket
Sign inDemoInstall

@react-native/gradle-plugin

Package Overview
Dependencies
0
Maintainers
2
Versions
246
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @react-native/gradle-plugin

Gradle Plugin for React Native


Version published
Weekly downloads
1.3M
increased by7.81%
Maintainers
2
Install size
146 kB
Created
Weekly downloads
 

Package description

What is @react-native/gradle-plugin?

The @react-native/gradle-plugin npm package is designed to enhance and simplify the integration of React Native projects with the Android build system, Gradle. It provides a set of Gradle scripts and configurations that automate the process of building and bundling React Native code and assets into Android applications. This plugin streamlines the development workflow, making it easier to include React Native components in Android apps, manage dependencies, and customize the build process.

What are @react-native/gradle-plugin's main functionalities?

Automatic linking of project dependencies

Automatically links all project dependencies declared in your `package.json` file with your Android project, eliminating the need for manual linking. This feature simplifies the process of adding and updating React Native modules that include native Android code.

apply plugin: '@react-native/gradle-plugin'

Customizable build configurations

Allows for customization of build configurations, such as specifying the entry file for the React Native bundle or enabling bundling for release builds. This feature provides flexibility in how React Native components are built and integrated into your Android app.

project.ext.react = [
    entryFile: 'index.js',
    bundleInRelease: true
]

Asset bundling and packaging

Automates the process of bundling JavaScript code and assets (such as images and fonts) into your Android application. This ensures that all necessary React Native components and resources are included in the app package, ready for distribution.

bundleReleaseJsAndAssets {
    dependsOn 'mergeReleaseResources'
    dependsOn 'bundleReleaseJsAndAssets'
}

Other packages similar to @react-native/gradle-plugin

Readme

Source

@react-native/gradle-plugin

Version

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:

  1. yarn to install the dependencies. You just need to run this once
  2. yarn jest packages/react-native-gradle-plugin.

Keywords

FAQs

Last updated on 22 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc