@rnrepo/expo-config-plugin
v0.3.0-beta.1
Published
Plugin for configuring RNRepo prebuilt packages in Expo projects
Readme
@rnrepo/expo-config-plugin
Expo Config Plugin for automatically configuring RNRepo prebuilds in your React Native project.
Installation
npx expo install @rnrepo/expo-config-plugin
# or
npm install @rnrepo/expo-config-plugin
# or
yarn add @rnrepo/expo-config-plugin
# or
bun add @rnrepo/expo-config-pluginNote: In hoisted node_modules you might have to install the
@rnrepo/build-toolsmanually with:npx expo install @rnrepo/build-tools
Then add the plugin to your Expo configuration in app.json or app.config.js.
{
"expo" {
...
plugins: [
+ "@rnrepo/expo-config-plugin"
]
}
}Then run:
npx expo prebuild --cleanIt will modify your Android Gradle configuration to use RNRepo prebuilds.
What It Does
This plugin automatically modifies your Android Gradle configuration to:
- Add RNRepo Plugin Classpath - Adds the prebuilds plugin to your project dependencies
- Configure Maven Repository - Adds RNRepo Maven repository to buildscript and allprojects
- Apply Plugin - Applies the prebuilds plugin to your app's build.gradle
Disabling the plugin
To temporarily disable RNRepo without removing the plugin, set the environment variable DISABLE_RNREPO to any value when running Expo commands:
DISABLE_RNREPO=true npx expo run:androidLicense
ISC License
Support
For issues, questions, or feature requests, please visit:
RNRepo is created by Software Mansion
Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – Hire us.
