Repository navigation
chore(example): upgrade the example app to React Native 0.88 - #940
Merged
Merged
Conversation
- react 19.3.0, react-native 0.88.1, react-test-renderer 19.3.0
- @react-native/{babel,jest}-preset and @react-native/eslint-config 0.88.1
replace metro-react-native-babel-preset, the jest "react-native"
preset and @react-native-community/eslint-config
- flow-bin 0.331 (what React Native 0.88 uses) with a rewritten
.flowconfig
- Drop @types/react-native (React Native ships its own types)
- Drop the expo 46 web tooling (expo, @expo/webpack-config,
babel-preset-expo, react-dom 17, react-native-web 0.14, app.config.js);
it cannot run on React 19 and will come back with the example upgrade
Library sources: replace React Native deep imports with public type
exports, update deprecated Flow utility types, and type the iOS
forwardRef export. Only syntax that older Babel versions parse is used,
since the sources ship untranspiled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- React 19.3 / React Native 0.88.1 with react-native-test-app 5.4 and @react-native-community/cli 20.2, regenerated with configure-test-app for Android and iOS (Gradle 9.4.1; iOS with Hermes and the New Architecture) - Remove the macOS and Windows example projects and the react-native-macos/react-native-windows dependencies; the library only advertises Android, iOS and web - Depend on the library through `workspace:*` so autolinking links the iOS native component (the old example only imported the JS via '..') - Metro: resolve the library from the repository root and watch it - Fix an image require that pointed at a non-existent root assets/ dir - Drop the @react-native-community/cli 4.10.0 override, which was only needed for React Native 0.63 - CI: build Android with JDK 17 and drop the --openssl-legacy-provider workaround Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use `command -v node` (the React Native template default) instead of a machine-specific Node path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # pnpm-lock.yaml
This was referenced Nov 22, 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.
Overview
The second of the React Native 0.88 upgrade PRs. It follows #939, which upgraded the root tooling and is now merged.
This rebuilds the example app on React 19.3 / React Native 0.88.1 for Android and iOS. Web will follow in a separate PR.
Example app
react-native-test-app5.4 (was 1.4.6) and@react-native-community/cli20.2. The native projects were regenerated with test-app'sconfigure-test-app -p android -p ios: Gradle 9.4.1 on Android, and Hermes with the New Architecture (fabric_enabled) on iOS.react-native-macos/react-native-windowsdependencies are gone. The library only advertises Android, iOS and web (README badge, podspec platforms), and test-app 5 caps macOS at RN 0.81.workspace:*dependency. The old example only imported the JS viaimport SegmentedControl from '..', so nothing linked the iOS native component (RNCSegmentedControl). With the dependency, autolinking findsreact-native-segmented-control.podspec.react-native configlists it for iOS and, correctly, not for Android, which is JS-only.extraNodeModules, and the root is added towatchFolders. Metro couldn't follow theexample/node_modulessymlink that points back up at the root.requireinApp.jspointed at../assets/images/user.png, a rootassets/directory that doesn't exist. It now uses./assets/images/user.pnglike the other one..xcode.env: uses$(command -v node)instead of a machine-specific Node path.Repo
@react-native-community/cli4.10.0 override inpnpm-workspace.yamlwas only there for React Native 0.63 and conflicts with CLI 20.Example appsCI:--openssl-legacy-providerworkaround is dropped.This also fixes the
androidfailure introduced by #939. There, the RN 0.63 example's Metro config picked up the root's React Native 0.88metro-configthrough pnpm's hoisted layout (Package subpath './src/defaults/blacklist' is not defined by "exports"). Now both use the same React Native version.Test Plan
Run locally:
pnpm install --frozen-lockfile, Jest (9 passed),pnpm lint(0 errors),pnpm tsc: all pass.pnpm build:androidandpnpm build:ios(Metro bundles) both succeed and include the 8 image assets../gradlew assembleDebug→BUILD SUCCESSFUL(JDK 17).pod installcompletes (90 pods, includingreact-native-segmented-control). A simulator build withxcodebuild ... -sdk iphonesimulator buildgivesBUILD SUCCEEDED, compilingRNCSegmentedControl.mandRNCSegmentedControlManager.munder React Native 0.88 / New Architecture.Not verified: running the app on a device or simulator. The iOS segmented control is an old-architecture view manager, which goes through React Native's interop layer on the New Architecture, so it's worth checking on a simulator before release. A proper Fabric component is #761's territory.
Example appsCI should now passandroid. Theiosjob runspod installonmacos-latest.🤖 Generated with Claude Code