chore: update React Native version from 0.82 to 0.87 - #321
Draft
OnestarLee wants to merge 1 commit into
Draft
OnestarLee wants to merge 1 commit into
OnestarLee wants to merge 1 commit into
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>
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.)hermesCommand: hermesc moved fromreact-native/sdks/hermescto thehermes-compilerpackage; path now points at the hoisted copy.setupFiles→@react-native/jest-preset.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