Skip to content

chore(sample): Bump React Native sample to 0.87.0 - #6617

Open
antonis wants to merge 5 commits into
fix/metro-resolve-project-rootfrom
chore/sample-bump-rn-0.87.0
Open

chore(sample): Bump React Native sample to 0.87.0#6617
antonis wants to merge 5 commits into
fix/metro-resolve-project-rootfrom
chore/sample-bump-rn-0.87.0

Conversation

@antonis

@antonis antonis commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Note

Stacked on #6625 (fix(core): Resolve Metro from project root). This PR is based on that branch, so its diff is sample-only. Merge #6625 first, then this will retarget to main.

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Bumps the React Native sample app (samples/react-native) to React Native 0.87.0 (from 0.86.2), including the Android AGP 9 / Kotlin migration that RN 0.87 requires.

JS dependencies

  • react-native and @react-native/new-app-screen0.87.0.
  • @react-native/babel-preset, @react-native/jest-preset, @react-native/metro-config, @react-native/typescript-config0.87.0.
  • react-native-reanimated 4.4.14.6.0 and react-native-worklets 0.9.20.12.1 (required for RN 0.87 compatibility — 4.4.1 fails pod install on RN 0.87).
  • yarn.lock — regenerated.

react was already at 19.2.3, which satisfies RN 0.87's peer requirement.

Android (AGP 9 / Kotlin, per the RN 0.87 blog and Upgrade Helper)

  • Gradle wrapper 9.3.19.4.1 (RN 0.87 minimum).
  • compileSdk/buildToolsVersion37, kotlinVersion2.2.0.
  • android.builtInKotlin=false and android.newDsl=false in gradle.properties (AGP 9 opt-outs).
  • proguard-android-optimize.txt (AGP 9 no longer supports proguard-android.txt).

💡 Motivation and Context

React Native 0.87.0 has been released. This keeps the RN sample app on the latest version and surfaces integration issues early.

Relates to #6527.

💚 How did you test it?

  • iOS: pod install succeeds locally with new architecture (reanimated 4.6.0 + worklets 0.12.1).
  • Android: Gradle configuration succeeds locally with Gradle 9.4.1 + AGP 9 (all AGP 9 / Kotlin config errors resolved).
  • CI: Sample Application workflow (sample-application.yml) against RN 0.87.0.
  • Manual testing of the sample apps

📝 Checklist

  • I added tests to verify changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • No breaking changes.

🔮 Next steps

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • chore(sample): Bump React Native sample to 0.87.0 by antonis in #6617
  • chore(sample): Bump React Native sample to 0.87.0 by antonis in #6617
  • chore(deps): update Maestro to v2.10.0 by github-actions in #6641
  • chore(deps): update JavaScript SDK to v10.73.0 by github-actions in #6642
  • test(ios): Speed up sentry-xcode-scripts tests by antonis in #6633
  • fix: Update recommended vscode extensions by antonis in #6640
  • chore(deps): bump actions/setup-java from 5.7.0 to 6.0.0 by dependabot in #6636
  • chore(deps): bump the codeql-action group with 3 updates by dependabot in #6635
  • chore(deps): update JavaScript SDK to v10.72.0 by github-actions in #6634
  • chore(e2e): Bump E2E tests to React Native 0.87.0 by antonis in #6616
  • chore(deps): update CLI to v3.7.0 by github-actions in #6632
  • feat(tracing): Copy app start vitals onto standalone children by buenaflor in #6631
  • chore(deps): update Cocoa SDK to v9.26.1 by github-actions in #6623
  • fix(ios): Force-load the Sentry static archive to keep ObjC category methods by antonis in #6615
  • feat(core): Forward feature flag evaluations to the native SDKs by antonis in #6613
  • chore(deps): update Android SDK to v8.54.0 by github-actions in #6624
  • chore(deps): update Sentry Android Gradle Plugin to v6.20.0 by github-actions in #6627

🤖 This preview updates automatically when you update the PR.

@antonis antonis added the ready-to-merge Triggers the full CI test suite label Aug 26, 2026
@antonis antonis linked an issue Aug 26, 2026 that may be closed by this pull request
@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 432.42 ms 466.84 ms 34.42 ms
Size 49.74 MiB 55.66 MiB 5.91 MiB

Baseline results on branch: fix/metro-resolve-project-root

Startup times

Revision Plain With Sentry Diff
a1cdaff+dirty 421.02 ms 430.26 ms 9.24 ms
ade1508+dirty 485.55 ms 545.23 ms 59.68 ms

App size

Revision Plain With Sentry Diff
a1cdaff+dirty 49.74 MiB 55.66 MiB 5.91 MiB
ade1508+dirty 49.74 MiB 55.45 MiB 5.71 MiB

Previous results on branch: chore/sample-bump-rn-0.87.0

Startup times

Revision Plain With Sentry Diff
90ca8c8+dirty 458.81 ms 499.98 ms 41.17 ms
51f7693+dirty 450.81 ms 472.94 ms 22.13 ms
55a714b+dirty 431.85 ms 474.29 ms 42.44 ms
3a284d6+dirty 416.10 ms 428.80 ms 12.69 ms

App size

Revision Plain With Sentry Diff
90ca8c8+dirty 49.74 MiB 55.45 MiB 5.71 MiB
51f7693+dirty 49.74 MiB 55.66 MiB 5.91 MiB
55a714b+dirty 49.74 MiB 55.45 MiB 5.71 MiB
3a284d6+dirty 49.74 MiB 55.45 MiB 5.71 MiB

@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 3855.11 ms 1226.02 ms -2629.09 ms
Size 5.08 MiB 6.80 MiB 1.72 MiB

Baseline results on branch: fix/metro-resolve-project-root

Startup times

Revision Plain With Sentry Diff
ade1508+dirty 3839.98 ms 1220.75 ms -2619.23 ms
a1cdaff+dirty 3856.69 ms 1221.58 ms -2635.11 ms

App size

Revision Plain With Sentry Diff
ade1508+dirty 5.08 MiB 6.72 MiB 1.64 MiB
a1cdaff+dirty 5.08 MiB 6.80 MiB 1.72 MiB

Previous results on branch: chore/sample-bump-rn-0.87.0

Startup times

Revision Plain With Sentry Diff
90ca8c8+dirty 3834.94 ms 1216.06 ms -2618.88 ms
3a284d6+dirty 3829.24 ms 1216.74 ms -2612.49 ms
51f7693+dirty 3844.79 ms 1226.52 ms -2618.27 ms
55a714b+dirty 3854.39 ms 1226.60 ms -2627.78 ms

App size

Revision Plain With Sentry Diff
90ca8c8+dirty 5.08 MiB 6.72 MiB 1.64 MiB
3a284d6+dirty 5.08 MiB 6.75 MiB 1.67 MiB
51f7693+dirty 5.08 MiB 6.80 MiB 1.72 MiB
55a714b+dirty 5.08 MiB 6.75 MiB 1.67 MiB

@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 3851.57 ms 1230.02 ms -2621.55 ms
Size 5.08 MiB 6.80 MiB 1.72 MiB

Baseline results on branch: fix/metro-resolve-project-root

Startup times

Revision Plain With Sentry Diff
ade1508+dirty 3846.26 ms 1221.43 ms -2624.83 ms
a1cdaff+dirty 3841.65 ms 1224.58 ms -2617.07 ms

App size

Revision Plain With Sentry Diff
ade1508+dirty 5.08 MiB 6.72 MiB 1.64 MiB
a1cdaff+dirty 5.08 MiB 6.80 MiB 1.72 MiB

Previous results on branch: chore/sample-bump-rn-0.87.0

Startup times

Revision Plain With Sentry Diff
90ca8c8+dirty 3850.62 ms 1215.95 ms -2634.66 ms
3a284d6+dirty 3841.60 ms 1222.35 ms -2619.26 ms
51f7693+dirty 3856.49 ms 1225.51 ms -2630.98 ms
55a714b+dirty 3830.93 ms 1217.24 ms -2613.69 ms

App size

Revision Plain With Sentry Diff
90ca8c8+dirty 5.08 MiB 6.72 MiB 1.64 MiB
3a284d6+dirty 5.08 MiB 6.75 MiB 1.67 MiB
51f7693+dirty 5.08 MiB 6.80 MiB 1.72 MiB
55a714b+dirty 5.08 MiB 6.75 MiB 1.67 MiB

@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 431.04 ms 433.51 ms 2.47 ms
Size 49.74 MiB 55.66 MiB 5.91 MiB

Baseline results on branch: fix/metro-resolve-project-root

Startup times

Revision Plain With Sentry Diff
a1cdaff+dirty 428.06 ms 458.04 ms 29.98 ms
ade1508+dirty 491.94 ms 520.06 ms 28.12 ms

App size

Revision Plain With Sentry Diff
a1cdaff+dirty 49.74 MiB 55.66 MiB 5.91 MiB
ade1508+dirty 49.74 MiB 55.45 MiB 5.71 MiB

Previous results on branch: chore/sample-bump-rn-0.87.0

Startup times

Revision Plain With Sentry Diff
90ca8c8+dirty 436.58 ms 460.45 ms 23.87 ms
51f7693+dirty 514.98 ms 530.54 ms 15.57 ms
55a714b+dirty 491.06 ms 557.02 ms 65.96 ms
3a284d6+dirty 422.72 ms 432.27 ms 9.55 ms

App size

Revision Plain With Sentry Diff
90ca8c8+dirty 49.74 MiB 55.45 MiB 5.71 MiB
51f7693+dirty 49.74 MiB 55.66 MiB 5.91 MiB
55a714b+dirty 49.74 MiB 55.45 MiB 5.71 MiB
3a284d6+dirty 49.74 MiB 55.45 MiB 5.71 MiB

@antonis antonis linked an issue Aug 26, 2026 that may be closed by this pull request
@antonis antonis removed a link to an issue Aug 26, 2026
@antonis
antonis force-pushed the chore/sample-bump-rn-0.87.0 branch from 1f8d4f0 to 33c5f4e Compare August 26, 2026 15:14
@sentry

sentry Bot commented Aug 27, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
Sentry RN io.sentry.reactnative.sample 8.24.0 (104) Release

⚙️ sentry-react-native Build Distribution Settings

antonis and others added 2 commits August 27, 2026 13:21
Includes AGP 9 / Kotlin 2.2.0 migration required by RN 0.87:
- gradle-wrapper 9.4.1, compileSdk/buildTools 37, kotlinVersion 2.2.0
- android.builtInKotlin=false and android.newDsl=false (AGP 9 opt-outs)
- proguard-android-optimize.txt (AGP 9 requires it)
- react-native-reanimated 4.6.0 + react-native-worklets 0.12.1 (RN 0.87 compat)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… 0.87

react-native-screens ^4.13.1 -> ^4.27.0 and react-native-safe-area-context
^5.5.2 -> ^5.9.1. The older versions fail to compile against React Native
0.87 (screens' iOS RNSModule.mm / Android Kotlin, and safe-area-context's
Android SafeAreaView.kt uiImplementation reference).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@antonis
antonis force-pushed the chore/sample-bump-rn-0.87.0 branch from ba6a116 to 709f1cb Compare August 27, 2026 11:22
@antonis
antonis changed the base branch from main to fix/metro-resolve-project-root August 27, 2026 11:22
@antonis
antonis marked this pull request as ready for review August 27, 2026 15:00

@lucas-zimerman lucas-zimerman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Triggers the full CI test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump React Native sample to 0.87.0

2 participants