mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a2558d15ab
Summary: CxxReactPackage is supposed to be the way apps register C++-only turbo modules with React Native. Applications are meant to subclass this jni::HybridObject. Since this is a jni::HybridObject, applications are meant to create this CxxReactPackage in java, and initialize it with java dependencies. React Native will reach into its c++ part, and use it create C++-only turbo modules. NOTE: This is a **temporary** abstraction meant to unblock the stable API effort of removing the turbomodulemanagerdelegate builder from ReactHostDelegate: https://www.internalfb.com/code/fbsource/[e7efced3018f6178b7187a2358f3b76d40e2b43c]/xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostDelegate.kt?lines=50-51 Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D51166523 fbshipit-source-id: 51a22411239fbba32f3a70cc363e59947c2782dc
@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.