RNRepo Configuration
Opting out specific libraries
Create rnrepo.config.json in the React Native project root:
{
"denyList": {
"android": ["library-name-1", "library-name-2"],
"ios": ["library-name-3", "library-name-4"]
}
}Libraries in the deny list always build from source. Use this for libraries with native patches (Objective-C, Java, or Kotlin changes), build-time feature flags, or persistent C++ compatibility issues. JS-only patches do not require opting out - they don't affect the native artifact.
Disabling RNRepo for a single build
Set DISABLE_RNREPO to any value before the build command:
# Android
DISABLE_RNREPO=1 ./gradlew :app:assembleDebug
# iOS (requires pod reinstall)
DISABLE_RNREPO=1 pod installThis skips the plugin entirely. Use for debugging build failures, not permanent exclusion.
Expo Fingerprint / EAS — ignore RNRepo cache
The CocoaPods plugin caches downloaded xcframeworks in node_modules/<pkg>/.rnrepo-cache, which changes the fingerprint between local and CI machines. Exclude it:
.fingerprintignore:
**/.rnrepo-cacheOr in fingerprint.config.js — see the Expo Fingerprint docs.
Custom React Native directory (Android)
When node_modules/ or rnrepo.config.json is not at the standard path, tell the plugin where to look.
Via environment variable (takes precedence):
REACT_NATIVE_ROOT_DIR=/path/to/rn-root ./gradlew :app:assembleDebugVia gradle.properties:
REACT_NATIVE_ROOT_DIR=/path/to/rn-rootRefreshing the Gradle cache
Force re-download of all prebuilt artifacts:
./gradlew :app:assembleDebug --refresh-dependenciesManually clear the RNRepo Gradle cache:
rm -rf ~/.gradle/caches/modules-2/metadata-2.107/descriptors/org.rnrepo.public
rm -rf ~/.gradle/caches/modules-2/files-2.1/org.rnrepo.public
rm -rf ~/.gradle/caches/modules-2/metadata-2.107/descriptors/org.rnrepo.tools
rm -rf ~/.gradle/caches/modules-2/files-2.1/org.rnrepo.toolsGPG artifact verification (enterprise)
Every artifact is signed with Software Mansion's GPG key.
- Import the key:
curl https://keys.openpgp.org/vks/v1/by-fingerprint/6CBF6E07EBA0219DF11C9F78C9ED010ADBD95DFE | gpg --import - Configure Gradle dependency verification per the Android docs.
- Store the fingerprint (
6CBF6E07EBA0219DF11C9F78C9ED010ADBD95DFE) in your policy tooling to alert on key rotations.
FAIL_ON_PROJECT_REPOS / PREFER_SETTINGS Gradle mode
If Gradle rejects project-level repository additions, manually register the Maven repo in your root build.gradle:
allprojects {
repositories {
maven { url "https://packages.rnrepo.org/releases" }
}
}Make sure this allprojects block appears before applying the RNRepo plugin.