Skip to content

chore(🍏) fix macOS example, move react-native-macos to 0.83 - #630

Merged
wcandillon merged 3 commits into
wcandillon:mainfrom
theeket:chore/macos-example-083
Nov 16, 2026
Merged

wcandillon merged 3 commits into
wcandillon:mainfrom
theeket:chore/macos-example-083

Conversation

@theeket

@theeket theeket commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Sister PR of react-native-skia#4483

This PR is stacked on #629; its native fixes must land first to be able to build it without crash.

Description

The mobile example runs RN 0.88.1 and React 19.3, while its macOS dependency was still on 0.79. Give macOS its own workspace that imports the shared example gallery, following Skia's example layout and current CI approach.

The desktop runner pins RN macOS 0.83.0 with its RN 0.83.10 peer and React 19.2. Reanimated 4.6.0 and Worklets 0.12.2 match that renderer; the mobile app keeps Reanimated 4.7.1 and Worklets 0.13.1. Screens stays on 4.19.0 for its JavaScript desktop fallback, avoiding newer exports that require unsupported native screen components. Metro resolves shared imports through the desktop workspace, and Babel uses that workspace's matching Worklets plugin.

Main changes:

  • apps/example-macos: dedicated app, Metro/Babel config, macOS 14 Podfile and build/run instructions. Uses the published Dawn package and Skia binaries.
  • apps/example: remove macOS native project/dependency and the obsolete Metro setup-env workaround. Share demo sources through platform entries that exclude the mobile-only camera/Nitro integration on macOS.
  • Navigation dependencies: upgrade both runners to Navigation 7, remove the old v6 InteractionManager patch, and update typed route calls. Gallery rows use React Native's TouchableOpacity, matching Skia: Gesture Handler rows stopped accepting mouse clicks after returning from a demo. Explicit black labels remain readable on white rows in dark appearance.
  • RN macOS dependency patch: exclude unsupported native Apple libraries and duplicate mobile core specs from Codegen. Let its file request handler read bundled PNG/JPEG assets too; otherwise bridgeless fetch(asset.uri) has no handler and the gallery waits indefinitely for its startup textures.
  • CI/Turbo: bundle the macOS gallery on Ubuntu for every PR and build the native macOS app when runner, native, dependency or CI inputs change. Correct the macOS pod task paths and avoid caching native macOS builds.

Validation:

  • CocoaPods install and macOS arm64 Debug build passed.
  • Gallery labels, repeated demo/back navigation, Hello Triangle and Cube rendering confirmed on macOS.
  • macOS and iOS JavaScript bundles, shared gallery typecheck and focused lint passed.
  • Desktop bundle uses only its own React/RN macOS/Reanimated/Worklets/Screens copies and contains no native camera/Nitro modules.
  • CI YAML parsed locally.

w1 w2
w3 w4

@theeket
theeket force-pushed the chore/macos-example-083 branch from 4269fdc to 72980a4 Compare November 16, 2026 09:11
@wcandillon
wcandillon self-requested a review November 16, 2026 09:18
@wcandillon

Copy link
Copy Markdown
Owner

This is fantastic Thank You 😊

Stack 7.6.0 still calls InteractionManager in Card, which React Native
0.88 removed and which throws on access. The example crashed on launch
and never reached the e2e Tests screen on iOS and Android. Port the
6.4.1 patch dropped by the v7 upgrade.
@wcandillon
wcandillon merged commit 679612b into wcandillon:main Nov 16, 2026
8 checks passed
@theeket
theeket deleted the chore/macos-example-083 branch November 16, 2026 20:30
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

wcandillon added a commit that referenced this pull request Nov 18, 2026
Regenerate both example lockfiles: the react-native-webgpu podspec checksum changed in #631, and the iOS lockfile was missing RNScreens, added to apps/example in #630.
wcandillon added a commit that referenced this pull request Nov 18, 2026
Regenerate both example lockfiles: the react-native-webgpu podspec checksum changed in #631, and the iOS lockfile was missing RNScreens, added to apps/example in #630.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants