Skip to content

chore: upgrade to React Native 0.88 and Expo SDK 58 - #7852

Open
diegolmello wants to merge 71 commits into
developfrom
chore/upgrade-react-native-0.88-expo-58
Open

diegolmello wants to merge 71 commits into
developfrom
chore/upgrade-react-native-0.88-expo-58

Conversation

@diegolmello

@diegolmello diegolmello commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Proposed changes

Upgrades React Native 0.86.3 → 0.88.0, React 19.2.3 → 19.3.0 and Expo SDK 57 → 58. React Native 0.88 carries the iOS fix for layouts that keep their old size after a Dynamic Type change.

  • Versions: react-native and @react-native/* 0.88.0, @react-native/jest-preset 0.88.0 added, react/react-dom 19.3.0, react-test-renderer 19.3.0 added (peer of Testing Library), @types/react ~19.3.0, @react-native-community/cli* 20.2.0 (template pin), every expo-*, jest-expo and babel-preset-expo at the SDK 58 pins, @expo/fingerprint 0.21. @expo/dom-webview was held at 57.0.1 by a stale peer resolution in the lockfile; it now resolves to 58.0.2. @expo/ui is removed, and @react-native-menu/menu 2.3.6 is added for iOS only (react-native.config.js turns off its Android linking).
  • Kept: Jest 29, TypeScript 7.0.2, react-native-keyboard-controller 1.22.9 (already in expo.install.exclude).
  • Patches: expo-font, expo-audio, expo-asset and expo-file-system re-cut for SDK 58 with the same behaviour; the expo-font raw-asset path for Android 8.0 and below now registers the font through upstream's new registerTypeface. New: WatermelonDB's iOS JSI installer no longer references RCTCxxBridge (removed in 0.88); Bugsnag gets the empty proguard-rules.pro its Android build references. @react-native-menu/menu anchors the menu and its highlight preview on the trailing half of the row, where the value and chevron sit. The @expo/ui patch is gone with the package.
  • Android: AGP 9.2.1 (from the React Native Gradle plugin), Gradle 9.4.1 with the matching wrapper jar and scripts, Kotlin 2.2.0, compileSdk and build tools 37, android.builtInKotlin=false and android.newDsl=false as in the 0.88 template, buildConfig enabled for library modules (AGP 9 turns it off and several libraries read BuildConfig), and DefaultReactNativeHost(this@MainApplication).
  • iOS: pods updated for 0.88 (ReactNativeDependencies, hermes-engine, React-Core-prebuilt).
  • iOS native lists: the picker row is now a native UIMenu (@react-native-menu/menu). The whole row opens it, it shows the selected value, and VoiceOver reads it as one button with the title and value. Picking the option that is already selected reports it again, so Status → Clear after → Custom reopens the date sheet. Used by Accessibility and Appearance, User Preferences, Notification Preferences, Media Auto-Download and Status. Toggles render React Native's Switch, and row indicators use the icon font with the previous colours and right-to-left mirroring.
  • CI: .github/scripts/pod-install.sh removes a restored ios/Pods whose Manifest.lock doesn't match Podfile.lock before pod install. A cache restored by key prefix otherwise carries Pods from an older lockfile.
  • Code: StatusBar drops translucent/backgroundColor, which 0.88 removed (they were already ignored with edge-to-edge on). The room and empty-state backgrounds use Image instead of ImageBackground, which 0.88 deprecates. A test mock follows cancelIdleCallback's new nullable handle type.
  • Jest: jest-expo 58 ships an environment built on Jest 30; under Jest 29 it loses the timer globals during unmount. The preset now uses React Native's own Jest 29 environment. Snapshots gain the svgVariables={null} prop from react-native-svg 15.16. iOS e2e finds picker rows by test ID, and closes each menu by tapping the option that should be selected, matched by its label and selected state.

Issue(s)

https://rocketchat.atlassian.net/browse/NATIVE-1779

How to test or reproduce

  1. Fresh install on iOS and Android: select a server, log in, open a room, send a message.
  2. iOS Dynamic Type: open a room with date separators, switch Settings → Display & Brightness → Text Size to the largest accessibility size, return to the app, then set it back to the default and return again. Date separators and the header return to their normal size without reopening the room.
  3. Two-factor login, message action sheet, external keyboard Tab focus, OAuth and conference call web views.
  4. iOS pickers: Accessibility and Appearance → Show alerts as, User Preferences, Notification Preferences, Media Auto-Download and Status → Clear after. Tap anywhere on the row, pick a value, and the row shows the new value. In Status, pick Custom twice: the date sheet opens both times.
  5. Deep links (cold and warm), the iOS Share extension, and a foreground push while the app is open.

Screenshots

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

Device results are added as a comment once each platform is checked.

Summary by CodeRabbit

  • New Features
    • Native iOS lists now present options in a menu showing the selected value, with button accessibility support.
  • Bug Fixes
    • Improved picker selection updates on newer iOS versions, audio seeking for certain media files, and loading of bundled fonts on older Android devices.
  • Compatibility
    • Updated mobile platform components to support newer Android and iOS versions.
  • Style
    • Status bars now use the system background instead of a transparent one.

InteractionManager is removed in React Native 0.87 and throws on access in 0.88. Since 0.80 runAfterInteractions behaves like setImmediate, so timing is unchanged.
createInteractionHandle/clearInteractionHandle are no-op stubs since RN 0.82 and InteractionManager is removed in RN 0.87, so react-native-modal would crash on open once the API is gone.
Re-cut the @expo/ui, expo-font, expo-audio, expo-asset and expo-file-system
patches for SDK 58. Patch WatermelonDB's iOS JSI installer off the removed
RCTCxxBridge and add the proguard rules file Bugsnag's Android build expects.
…napshots

jest-expo 58 ships a Jest 30 environment, which loses timer globals under
Jest 29. react-native-svg 15.16 adds the svgVariables prop to snapshots.
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

This change updates Expo and React Native dependencies and Android build tooling. It revises Android and iOS project settings, app integration, test configuration, the iOS native-list picker, native module patches, and iOS Pod installation steps.

Changes

Expo and React Native upgrade

Layer / File(s) Summary
Dependency and build setup
package.json, android/build.gradle, android/gradle.properties, android/gradle/wrapper/gradle-wrapper.properties, android/gradlew, android/gradlew.bat, jest.preset.js, app/views/RoomsListView/hooks/__tests__/*
Expo, React, React Native, and related tooling move to newer versions. Android build tools, compile SDK, Kotlin, and Gradle wrapper versions change. The Gradle launchers invoke the wrapper JAR with -jar. The Jest preset and idle-callback mock are updated.
Native project integration
android/app/src/main/java/chat/rocket/reactnative/MainApplication.kt, app/containers/StatusBar.tsx, ios/RocketChat.xcodeproj/project.pbxproj
The Android host uses a qualified MainApplication reference. The status bar no longer receives translucent or transparent-background props. iOS resource-copy paths and React Native header search paths change.
Picker selection and native-list menu
patches/@expo+ui+58.0.23.patch, app/containers/List/components/ListPicker.ios.tsx
The Expo UI patch changes picker selection binding and callback payload handling. The native-list picker renders a SwiftUI menu row with the title, selected option, chevrons, and accessibility information.
Native module patches
patches/@bugsnag+react-native+8.4.0.patch, patches/@nozbe+watermelondb+0.28.1-0.patch, patches/expo-audio+58.0.10.patch, patches/expo-file-system+58.0.11.patch, patches/expo-font+58.0.10.patch
Patches update WatermelonDB bridge types, Expo audio seeking, Expo File System client access, and Android font loading. The Bugsnag patch adds an empty ProGuard rules file.
iOS Pod installation
.github/actions/build-ios/action.yml, .github/actions/upload-ios/action.yml, .github/scripts/pod-install.sh, .github/workflows/e2e-build-ios.yml
The iOS build and upload actions and E2E workflow call a shared script. The script removes ios/Pods when its manifest differs from Podfile.lock, then runs pnpm pod-install.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Possibly related PRs

Suggested labels: type: chore, type: bug

Suggested reviewers: rohit3523, julio-rocketchat

Merge Risk: Moderate · previous review 6a1df

The iOS native-list picker rows can render without selectable options, and they can be unreachable to VoiceOver users, so settings that use them may not be changeable. Android 8 and earlier devices may also show a fallback font for bold or italic text. The rest of the Expo 58 and React Native 0.88 upgrade shows no concrete merge-blocking issue. Fix the picker label and accessibility handling before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "chore: upgrade to React Native 0.88 and Expo SDK 58" matches the main change. The package.json diff moves Expo from SDK 57 to 58 and React Native to 0.88, and the objectives confirm the Rea…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "chore: upgrade to React Native 0.88 and Expo SDK 58" matches the main change. The package.json diff moves Expo from SDK 57 to 58 and React Native to 0.88, and the objectives confirm the React Native 0.86.3 to 0.88.0 and Expo SDK 57 to 58 upgrade. The title is short, specific, and uses a conventional commit prefix. It does not cover the Dynamic Type fix, the iOS build script changes, or the patch updates, which is acceptable.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Errors were encountered while retrieving linked issues.

Errors: 1

  • JIRA integration encountered authorization issues. Please disconnect and reconnect the integration in the CodeRabbit UI.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5b208f15-48a8-47b8-9507-41a59360aa0a
Commits

Reviewing files that changed from the base of the PR and between 30dfdcc and 6a1df24.

Files selected for processing: 4

  • .github/actions/build-ios/action.yml
  • .github/actions/upload-ios/action.yml
  • .github/scripts/pod-install.sh
  • .github/workflows/e2e-build-ios.yml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.

Recent review details

Context from checks skipped due to timeout: 3

  • GitHub Check: CodeRabbit
  • GitHub Check: ESLint and Test / run-eslint-and-test
  • GitHub Check: E2E Shard Preflight
Additional comments: 1

.github/actions/build-ios/action.yml: 1

40-40: Functional Correctness

The script is committed with the execute bit (100755) at the reviewed head, so the callers can run .github/scripts/pod-install.sh directly. The claimed Permission denied failure in the build, upload, and E2E Pod installation steps does not occur for that reason.

@diegolmello
diegolmello changed the base branch from chore/rn-088-expo-58-prep to develop November 30, 2026 19:07
…t-native-0.88-expo-58

# Conflicts:
#	app/containers/message/components/Touchable/Touch.tsx
#	ios/Podfile.lock
#	package.json
#	pnpm-lock.yaml
- add svgVariables={null} to PreviewWithImage and PreviewWithThumb snapshots
…menu/menu (#7967)

* chore: drop @expo/ui on iOS and open list pickers with @react-native-menu/menu

iOS toggles use React Native's Switch and row indicators use the icon
font. List pickers render the existing row inside a MenuView, so the whole
row opens a native UIMenu, reads as one button with its title and value,
and reports a repeated choice, which lets Status "Clear after" reopen the
date sheet for Custom. The menu library is iOS-only, so Android skips
linking it.

* test(e2e): find iOS list picker rows by testID and options by role

The "Show alerts as" picker gets a testID, and menu options are matched
by button role and selected state instead of a text match plus last().

* fix: restore iOS list indicator colours and keep picker title and value on the row

Indicators take the hint colour, the check takes the badge colour, and the
external arrow mirrors in RTL as before. The picker row lets its title and
value shrink together, so a long title or value no longer hides the
other. Menu actions are keyed by option index, the row height comes from a
shared hook, and the menu wiring lives in useListPickerMenu.

* refactor: render RN Switch directly in native lists and drop unused picker option testIDs

* refactor: spread Switch props in native lists and share the e2e selected-menu-option helper

* fix: open iOS list picker menus from the row's trailing side and align them with the row

* fix: keep iOS list picker menu options in a fixed order

* fix: keep the default indicator colour on Android

* refactor: share native row styles with the iOS list picker and simplify its helpers

The picker row reuses the native row's row and title styles instead of
copying them. The menu mapping is a plain function, the app-wide
colour scheme themes the menu, and RTL indicators mirror with one
horizontal flip.

* refactor: drop the name branch from the e2e selected-menu-option helper

* refactor: pass the alert-display picker testID from its screen
The Email alert menu selects 'Every mention/DM', not 'Default'. While the room header menu is open, iOS exposes only the menu to accessibility, so the room-view box is read before opening it.

This branch is waiting to be deployed

1 inactive and 2 waiting deployments
ios_build — df173cb4 Waiting Dec 2, 2026 by diegolmello via Build iOS / Hold #8179
android_build — df173cb4 Waiting Dec 2, 2026 by diegolmello via Build Android / Hold #8179
approve_e2e_testing — df173cb4 Deployed Dec 2, 2026 by diegolmello via E2E Hold #8179
upload_android — acf6ac89 Deployed Oct 28, 2026 by diegolmello via Build Android / Upload Hold #7623
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants