Repository navigation
chore: upgrade to React Native 0.88 and Expo SDK 58 - #7852
diegolmello wants to merge 71 commits into
Conversation
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.
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. WalkthroughThis 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. ChangesExpo and React Native upgrade
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Other Possibly related PRs
Suggested labels: Suggested reviewers: Merge Risk:
|
…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
…t-native-0.88-expo-58 # Conflicts: # ios/Podfile.lock # pnpm-lock.yaml
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.
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.
react-nativeand@react-native/*0.88.0,@react-native/jest-preset0.88.0 added,react/react-dom19.3.0,react-test-renderer19.3.0 added (peer of Testing Library),@types/react~19.3.0,@react-native-community/cli*20.2.0 (template pin), everyexpo-*,jest-expoandbabel-preset-expoat the SDK 58 pins,@expo/fingerprint0.21.@expo/dom-webviewwas held at 57.0.1 by a stale peer resolution in the lockfile; it now resolves to 58.0.2.@expo/uiis removed, and@react-native-menu/menu2.3.6 is added for iOS only (react-native.config.jsturns off its Android linking).react-native-keyboard-controller1.22.9 (already inexpo.install.exclude).expo-font,expo-audio,expo-assetandexpo-file-systemre-cut for SDK 58 with the same behaviour; theexpo-fontraw-asset path for Android 8.0 and below now registers the font through upstream's newregisterTypeface. New: WatermelonDB's iOS JSI installer no longer referencesRCTCxxBridge(removed in 0.88); Bugsnag gets the emptyproguard-rules.proits Android build references.@react-native-menu/menuanchors the menu and its highlight preview on the trailing half of the row, where the value and chevron sit. The@expo/uipatch is gone with the package.android.builtInKotlin=falseandandroid.newDsl=falseas in the 0.88 template,buildConfigenabled for library modules (AGP 9 turns it off and several libraries readBuildConfig), andDefaultReactNativeHost(this@MainApplication).ReactNativeDependencies,hermes-engine,React-Core-prebuilt).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'sSwitch, and row indicators use the icon font with the previous colours and right-to-left mirroring..github/scripts/pod-install.shremoves a restoredios/PodswhoseManifest.lockdoesn't matchPodfile.lockbeforepod install. A cache restored by key prefix otherwise carries Pods from an older lockfile.StatusBardropstranslucent/backgroundColor, which 0.88 removed (they were already ignored with edge-to-edge on). The room and empty-state backgrounds useImageinstead ofImageBackground, which 0.88 deprecates. A test mock followscancelIdleCallback's new nullable handle type.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
Screenshots
Types of changes
Checklist
Further comments
Device results are added as a comment once each platform is checked.
Summary by CodeRabbit