Skip to content
Mobile
Skill

/bump-rn

Upgrade React Native in expo/expo to a new patch or RC version end to end - rebase the expo/react-native fork (react-native-lab submodule) onto the upstream release tag, bump react-native and @react-native/* with `et bump-rn`, regenerate the committed Podfile.locks, verify, and

From plugin
expo
54k7 skills

Claude Code

$ npx -y skills add expo/expo --skill bump-rn --agent claude-code

SKILL.md

bump-rn.SKILL.md
name: bump-rn
description: Upgrade React Native in expo/expo to a new patch or RC version end to end - rebase the expo/react-native fork (react-native-lab submodule) onto the upstream release tag, bump react-native and @react-native/* with `et bump-rn`, regenerate the committed Podfile.locks, verify, and make the two conventional commits. Use when the user says "bump-rn", "bump react-native", "upgrade React Native to 0.xx", or a new React Native RC/patch is out.
argument-hint: "[-v] <version>"
allowed-tools: "Read,Edit,Bash"

Bump React Native in expo/expo

Arguments: `-v <version>` (or a bare version). Rules:

  • Do not `git push` unless the user asks. Never run `git submodule update` (it resets the fork checkout to the old pointer).
  • `et` and the pinned CocoaPods resolve only through direnv: `direnv exec "$REPO" et …`,

`direnv exec "$REPO" pod …`.

  • Commit only if the user asked for commits; otherwise stop before each commit and print the message.
  • Use absolute paths or `git -C`; do not rely on `cd` persisting between commands.
REPO=$(git rev-parse --show-toplevel)
LAB=$REPO/react-native-lab/react-native
NEW=<version>                                                                    # e.g. 0.89.0-rc.3
OLD=$(sed -nE 's/^  react-native: //p' "$REPO/pnpm-workspace.yaml")             # e.g. 0.89.0-rc.2
SDK=$(git -C "$LAB" branch -r --points-at "$(git -C "$REPO" rev-parse HEAD:react-native-lab/react-native)" \
  --format='%(refname:lstrip=3)' | sed -nE "s/^(sdk-[0-9]+)-$OLD\$/\1/p")      # e.g. sdk-59; run after `git -C "$LAB" fetch origin`
PNPM_VERSION=$(node -p "require('$REPO/package.json').devEngines.packageManager.version")  # pinned pnpm; a pnpm on PATH can be newer

The fork keeps one branch per React Native version: `$SDK-<version>` on `origin` (expo/react-native). The submodule in `main` points at the tip of `$SDK-$OLD`, so the checkout is usually a detached HEAD. The plain `$SDK` branch is not updated per bump.

0. Preflight

  • `git -C "$REPO" status --porcelain` and `git -C "$LAB" status --porcelain` are empty

(untracked files you will not commit are fine; section 6 stages only tracked files).

  • The fork has the upstream remote:

`git -C "$LAB" remote get-url fb || git -C "$LAB" remote add fb git@github.com:facebook/react-native.git`.

  • `git -C "$LAB" fetch origin && git -C "$LAB" fetch fb --tags`.
  • `git -C "$LAB" rev-parse HEAD "origin/$SDK-$OLD"` prints the same hash twice (else ask).
  • `git -C "$LAB" rev-parse "v$NEW"` resolves, and `npm view "react-native@$NEW" version` prints `$NEW`.
  • New minor (`$NEW` and `$OLD` differ in `0.xx`)? Do section 9 first.
  • `git -C "$REPO" fetch origin main && git -C "$REPO" checkout -b "<user>/bump-react-native-$NEW" origin/main`

(ignore the post-checkout warning about pods).

1. Fork: rebase onto the upstream release tag

git -C "$LAB" checkout -b "$SDK-$NEW" "origin/$SDK-$OLD"
git -C "$LAB" cherry "v$NEW" "$SDK-$NEW"      # '-' lines are already upstream; the rebase drops them
git -C "$LAB" rebase "v$NEW"

Rebase onto the tag, not onto `fb/0.XX-stable`: the stable branch moves past the release (backports, `[LOCAL] Bump Podfile.lock`) before Expo bumps.

Checks:

  • `git -C "$LAB" log --oneline "v$NEW..HEAD"` lists only Expo's commits, the same ones as

`git -C "$LAB" log --oneline "v$OLD..origin/$SDK-$OLD"`. sdk-59 carries 4: Hermes debugger on release builds, appearance night mode scoped to the activity, dev settings activity guarded, explicit Kotlin Gradle plugin.

  • `node -p "require('$LAB/packages/react-native/package.json').version"` = `$NEW`.
  • `git -C "$LAB" status --porcelain` empty.
  • `HERMES=$(sed -n 's/^HERMES_VERSION_NAME=//p' "$LAB/packages/react-native/sdks/hermes-engine/version.properties")`.

Conflicts: commit already upstream (a `-` in `git cherry`, or Meta's `[LOCAL] Bump Podfile.lock`) -> `git rebase --skip`. Expo commit -> keep the upstream code, re-apply Expo's change, `git add -A && git rebase --continue`. Anything odd -> `git rebase --abort` (`origin/$SDK-$OLD` keeps the old tip).

2. Push the fork branch (ask first)

git -C "$LAB" push origin "$SDK-$NEW"

CI and the EAS Expo Go build fetch the submodule and fail until this is pushed. Keep going locally.

3. Commit 1

git -C "$REPO" add react-native-lab/react-native
git -C "$REPO" commit -m "[react-native-lab] Update to $NEW"
git -C "$REPO" show --stat --format= HEAD     # only react-native-lab/react-native

4. Packages and pods

cd "$REPO" && direnv exec "$REPO" et bump-rn -v "$NEW" > "$TMPDIR/bump-rn.log" 2>&1

Budget 20+ minutes: run it in the background and poll the log (or `--no-pods`, then per app `direnv exec "$REPO" pod install` in `<app>/ios`; expo-go: `pnpm run install:react-native-lab` in `$REPO` then `pod update hermes-engine --no-repo-update`). Without a TTY it installs pods without asking. It bumps every package.json (apps, packages incl. e2e fixtures, templates), the pnpm-workspace.yaml override and bundledNativeModules.json, runs `pnpm install`, then `pod install` sequentially in the 5 apps with a committed Podfile.lock (bare-expo, brownfield-tester/integrated, minimal-tester, native-tests, expo-go last). expo-go needs the lab codegen built and `pod update hermes-engine` because hermes-engine is an external podspec at a fixed lab path that a plain `pod install` never re-reads.

If one app fails: fix the cause, then re-run `pod install` in that app's `ios` dir only (expo-go: `pod update hermes-engine --no-repo-update`). Corrupted Pods dir -> `rm -rf <app>/ios/Pods` and re-run.

Then, always, dedupe with the repo-pinned pnpm (`et bump-rn` used whatever `pnpm` is on PATH):

cd "$REPO" && npx -y pnpm@$PNPM_VERSION dedupe 2>&1 | tail -3     # ~30 s; rewrites pnpm-lock.yaml and node_modules only

Run it before the section 5 checks so commit 2 carries the deduped lock. If the dedupe diff changes the version of a package that also appears in a Podfile.lock, re-run

Read more
@expo
Ships withexpo

An open-source framework for making universal native apps with React. Expo runs on Android, iOS, and the web.

Stars on GitHub

Momentum

stars in total
53.8k
Star history of expo/expo on GitHub, a chart by star-history.com

Other skills on expo.

deep-code-review

deep-code-review

In-depth design-focused code review - understands codebase context before evaluating PR changes, posts structured feedback to…

@expo@expoInstall Skill
expo-api-docs

expo-api-docs

Write TSDoc comments for Expo SDK APIs following official conventions. MUST USE when introducing new user-facing TypeScript APIs…

@expo@expoInstall Skill
expo-review

expo-review

Run Expo's configured AI code reviewer on local changes or an expo/expo pull request, summarize findings and reviewer coverage,…

@expo@expoInstall Skill
updating-expo-config

updating-expo-config

Add a new property to the Expo config (app.json / app.config.js) schema. Covers the universe JSON schema, `@expo/config-types`,…

@expo@expoInstall Skill
expo-app-intents

expo-app-intents

Add or maintain Apple App Intents in existing Expo apps using expo-app-intents. Use for Siri and Shortcuts actions, Swift intent…

@expo@expoInstall Skill
expo-sqlite

expo-sqlite

Persist and query local data with expo-sqlite in Expo or React Native apps. Use for SQLite setup, SQL queries, schema migrations,…

@expo@expoInstall Skill

More skills from other plugins.

modlens

modlens

Plug-in vision for text-only models. Hard rule: when a file path or URL with an image extension (.png, .jpg, .jpeg, .webp, .gif,…

modlens5w4.6k
@liustack@liustackInstall Skill
appllama-app-design-skill

appllama-app-design-sk…

Build native-feeling, benchmark-quality mobile app screens (Expo / React Native). Use when designing or implementing any mobile…

appllama2mo3.9k
@appllama@appllamaInstall Skill
add-component

add-component

Add a SwiftUI component from ShipSwift. Use when the user says "add component", "add a view", "add X view", "I need a chart",…

shipswift4w3.3k
@signerlabs@signerlabsInstall Skill

Questions about bump-rn.

Which coding agents can use bump-rn?
bump-rn installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.