Repository navigation
chore(example): restore the web example with Expo SDK 58 - #947
Merged
Merged
Conversation
Add an example-web workspace package that runs the shared example/App.js on web with Expo SDK 58, which targets exactly react-native 0.88.1, react/react-dom 19.3.0 and react-native-web 0.21. It is a separate package so that Expo modules are not autolinked into the react-native-test-app Android/iOS builds. - Metro watches the repository root and resolves the library from it - `pnpm web` starts the dev server; CI runs `expo export --platform web` in a new `web` job of the Example apps workflow - Override minimatch for @expo/fingerprint (same as #943) - Stop tracking example/ios/.xcode.env: react-native-test-app rewrites it with a machine-specific Node path on every `pod install`, and the generated example/.gitignore already ignores it - Ignore example/android/.kotlin and the web build output Closes #946 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e link
The `workspace:*` dependency linked
example-web/node_modules/@react-native-segmented-control/segmented-control
back to the repository root. Together with the same link in example/,
that made Flow's file crawl never finish ("Lost connection to the flow
server" in CI; stuck at "Parsing" locally). The web example doesn't need
autolinking, and Metro already resolves the library from the root via
extraNodeModules, so drop the dependency.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Naturalclar
force-pushed
the
chore/web-example
branch
from
November 22, 2026 07:27
7de5943 to
3a1ede6
Compare
This was referenced Nov 23, 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
Closes #946.
#939 removed the expo 46 web tooling because it couldn't run on React 19, and #940 rebuilt the native example on React Native 0.88 with
react-native-test-app, which doesn't support web. This PR brings the web example back.example-web/A new workspace package that runs the shared
example/App.json web with Expo SDK 58. SDK 58 targets exactly the versions the repo uses:react-native0.88.1,react/react-dom19.3.0 andreact-native-web~0.21.4.expotoexample/would autolink Expo modules into thereact-native-test-appAndroid/iOS builds.example/metro.config.js, it watches the repository root and resolves the library from it viaextraNodeModules.babel-preset-expostrips Flow, so the untranspiledjs/sources work as they are.workspace:*dependency on the library: web needs no autolinking. A secondnode_moduleslink back to the repository root (next to the one inexample/) made Flow's file crawl never finish: "Lost connection to the flow server" in CI, stuck at "Parsing" locally. With it removed,flow checkfinishes in about 5 seconds.pnpm webat the root starts the dev server;pnpm exportinexample-webbuilds a static export.CI
A
webjob in theExample appsworkflow runsexpo export --platform web.Dependencies
Expo brings in
minimatch10.2.6 through@expo/fingerprint. It's covered by the same override approach as #943, so no Dependabot alert comes back.Housekeeping
example/ios/.xcode.envis no longer tracked.react-native-test-apprewrites it with a machine-specific Node path on everypod install, and theexample/.gitignorethatconfigure-test-appgenerated already lists it. (chore(example): upgrade the example app to React Native 0.88 #940 committed a portable value, but it gets overwritten locally on eachpod install.)example/android/.kotlin/(Gradle 9),example-web/dist, and.expo. The last two are also added to.eslintignoreand.flowconfig.Test Plan
Run locally:
expo export --platform webwith the cache cleared bundles 266 modules intodist/.dist/and opened it in headless Chrome. All example sections render (segments, pre-selected, momentary, disabled, custom colours, images, font sizes), and I checked a screenshot.Value: Unselected Index:toValue: Two Index: 1.assembleDebugsucceeds.pod installinstalls the same 90 pods withPodfile.lockunchanged, so no Expo modules get autolinked. (react-native-test-appdoes notice@expo/config-plugins, but the example'sapp.jsonhas no plugins.)pnpm auditshows no minimatch findings. The only remaining finding is a new moderateglobadvisory (GHSA,>=9.0.0 <=14.0.1) on jest'sglob@10/glob@13. It's already present onmasterand will be handled separately.pnpm install --frozen-lockfile, Jest (9 passed),pnpm lint(0 errors) andpnpm tscpass.flow checkpasses in about 5 seconds. The first push failed in CI because of the symlink cycle described above, now fixed.🤖 Generated with Claude Code