Index of every page on this site: llms.txt
All skills
Run it yourself

Best practices for integrating and using RNRepo — Software Mansion's infrastructure for pre-built React Native library artifacts that reduces native build times by up to 2×. Use when setting up, configuring, or troubleshooting RNRepo in a React Native or Expo project. Trigger on: 'RNRepo', 'rnrepo', 'slow builds', 'build times', 'prebuilt artifacts', 'prebuilt libraries', '@rnrepo/expo-config-plugin', '@rnrepo/build-tools', 'prebuilds-plugin', 'rnrepo.config.json', 'DISABLE_RNREPO', 'packages.rnrepo.org', 'Maven prebuild', 'CocoaPods prebuild', 'xcframework prebuild', 'prebuild AAR', 'build from source', 'native compilation slow', 'Gradle plugin slow', 'pod install slow', 'CI build times'.

Use this Skill: https://skilld.dev/gh/software-mansion-labs/skills/rnrepo

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesconfiguration.md

≈829 tokens on demand. Your agent reads this file only when SKILL.md points to it.

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 install

This 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-cache

Or 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:assembleDebug

Via gradle.properties:

REACT_NATIVE_ROOT_DIR=/path/to/rn-root

Refreshing the Gradle cache

Force re-download of all prebuilt artifacts:

./gradlew :app:assembleDebug --refresh-dependencies

Manually 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.tools

GPG artifact verification (enterprise)

Every artifact is signed with Software Mansion's GPG key.

  1. Import the key:
    curl https://keys.openpgp.org/vks/v1/by-fingerprint/6CBF6E07EBA0219DF11C9F78C9ED010ADBD95DFE | gpg --import
  2. Configure Gradle dependency verification per the Android docs.
  3. 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.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides standard documentation and installation guidelines for RNRepo, a React Native build optimization infrastructure by Software Mansion. It contains no executable code or security risks.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 43cde80. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 6 months ago

README badge

README badge for software-mansion-labs/skills/rnrepo