Repository navigation
chore: update React Native version from 0.82 to 0.87 - #321
Merged
Merged
Conversation
- Bump react-native 0.87.1 / react 19.2.3 across root, packages and sample (single hoisted copy is required by the monorepo native path config) - Apply Upgrade Helper diff 0.82.1..0.87.1 to the sample (Gradle 9.4.1, compileSdk/buildTools 37, Kotlin 2.2, edge-to-edge, AGP 9 opt-outs, quoted Xcode bundle script paths, Gemfile nkf) - Resolve react-native types via tsconfig paths: RN 0.87 exposes types only through package exports; drop the @types/react-native stub - Point Android hermesCommand to the hoisted hermes-compiler package - Switch jest preset to @react-native/jest-preset - Upgrade @react-native-documents/picker to 12 (10.x fails to compile on 0.87) and RN-coupled native libs (nitro-modules/sound, mmkv, screens, video, safe-area) - Sample: remove StatusBar.setTranslucent (removed in 0.87), use MMKV v4 remove(), raise Gradle heap to avoid Jetifier OOM Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OnestarLee
force-pushed
the
chore/sample-rn-0.87
branch
from
October 8, 2026 00:53
558700a to
0e88f77
Compare
React Native 0.87 packages (e.g. @react-native/jest-preset) require Node >= 22.13, so `yarn install` fails on the Node 20 runners. Align ci.yml, publish-sample.yml and .nvmrc with release-workflow.yml, which already uses Node 24. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #321 +/- ##
=======================================
Coverage 12.31% 12.31%
=======================================
Files 361 361
Lines 9108 9108
Branches 2563 2563
=======================================
Hits 1122 1122
Misses 7985 7985
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- Resolve react-native types via tsconfig paths in docs-validation's build config, as in packages/*; without it TextStyle became `any` and FontAttributes required every property - Match docs-validation's native dependency ranges to the root/sample (documents picker 12, video 6.19, nitro, mmkv, safe-area) so no stale nested copies conflict with the types UIKit is built against Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OnestarLee
marked this pull request as ready for review
October 8, 2026 01:11
danney-chun
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For Internal Contributors
[TICKET_ID]
Description Of Changes
Upgrades the sample app and the monorepo's hoisted React Native from 0.82.1 → 0.87.1 (React 19.1.1 → 19.2.3). The monorepo hoists a single RN copy and all sample native path config points at
../../node_modules, so root /packages/*/docs-validationdevDeps are bumped together. Peer dependency ranges are unchanged.Upgrade Helper diff (0.82.1..0.87.1)
edgeToEdgeEnabled=true, AGP 9 opt-outs (android.builtInKotlin=false,android.newDsl=false),proguard-android-optimize.txtSUPPORTED_PLATFORMS, GemfilenkfMonorepo path / tooling fixes
typesfield and exposes types only viaexports, somoduleResolution: "node"can't see them. Addedpaths: { "react-native": ["./node_modules/react-native/types"] }(legacy types, same surface as before) to the root tsconfig and eachpackages/*/tsconfig.build.json. Removed the empty@types/react-nativestub, which triggered TS2688. (moduleResolution: "bundler"was tried but breaks@sendbird/chat/lib/__definitiondeep imports.)react-nativetypepathsin itstsconfig.build.json, and native dependency ranges aligned with root/sample so no stale nested copies (picker 10, video 6.17, …) conflict with UIKit's types.hermesCommand: hermesc moved fromreact-native/sdks/hermescto thehermes-compilerpackage; path now points at the hoisted copy.setupFiles→@react-native/jest-preset.yarn installfailed on the Node 20 runners).ci.yml,publish-sample.ymland.nvmrcnow matchrelease-workflow.yml, which already uses Node 24.react-androidAAR (also reproduces onmainfrom a fresh checkout path).Dependencies
@react-native-documents/picker10 → 12 (10.1.7 doesn't compile against 0.87'sReactContext.getCurrentActivity();pick/errorCodes/isErrorWithCodeused by UIKit are unchanged)Sample code
StatusBar.setTranslucent(removed in 0.87 → Android startup crash)delete()→remove()in the sample credential storageVerification
yarn build,yarn test(205 passed),yarn test:build,yarn lint, sampletsc— all greenmain/ RN 0.82.1, not caused by this PR):ChannelInputhas no Android keyboard avoidance)MediaPlayer-1007)Uncaught (in promise) TypeError: undefined is not a functionwas seen 1–2 times and did not reproduce across 8 subsequent reloads; root cause not identified.Types Of Changes
🤖 Generated with Claude Code