Repository navigation
feat(react-native): build and run on react-native-macos - #105
Open
NathanWalker wants to merge 2 commits into
Open
NathanWalker wants to merge 2 commits into
NathanWalker wants to merge 2 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
NathanWalker
marked this pull request as ready for review
November 2, 2026 04:45
ammarahm-ed
force-pushed
the
android-react-native
branch
2 times, most recently
from
November 8, 2026 12:59
4f87f05 to
9633aba
Compare
Closed
8 tasks done
macOS metadata was generated for macos11.0, and the generator leaves out declarations introduced after the target, so everything newer than macOS 11 was missing from the embedded metadata: ScreenCaptureKit's SCStream (12.3), SCScreenshotManager (14.0), NSGlassEffectView (26.0) and the rest. iOS already targets the SDK version.
The TurboModule pod now declares macOS 14 alongside iOS 13, so Expo Desktop
and other react-native-macos apps can link it. On macOS:
- metadata.macos.{arm64,x86_64}.nsmd is bundled and selected at runtime
- Libffi.xcframework carries a macOS slice
- the Hermes signature dispatch table is chosen per platform at compile time
- NativeScriptUIView (UIKit host views) is left out until an AppKit host exists
Verified in an Expo Desktop (SDK 55, react-native-macos 0.83) app: init(),
runOnUI worklets reading and writing NSApplication/NSWindow on the main thread,
and ScreenCaptureKit captures of the app's own window.
NathanWalker
force-pushed
the
feat/react-native-macos
branch
from
November 20, 2026 21:24
ce8f3a9 to
64dc06c
Compare
This branch has not been deployed
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.
Summary
Lets
@nativescript/react-nativelink into react-native-macos apps (Expo Desktop, plain RN macOS). One pod serves both iOS and macOS:On this branch
init()installs into Worklets on every platform, so the JS side needs no change.fix/react-native-reported-issuesaddssupportsWorkletRuntime()(iOS only); when that lands it should also return true forPlatform.OS === "macos".The first commit is the change from #104 (macOS metadata targets the SDK version, not
macos11.0). Without it the macOS metadata lacksSCStream,SCScreenshotManager,NSGlassEffectViewand everything newer than macOS 11. It drops out of this PR once #104 is merged and merged into this base.Evidence
Built and run in an Expo Desktop app (
expo-desktop-template-blank-typescript@55.83.10: Expo SDK 55, react-native-macos 0.83.0, Hermes 0.14.1, New Architecture, react-native-worklets 0.8.3).pod installrefuses the pod for a macOS target (platform:iosonly).Tested on top of
fix/react-native-reported-issuesand then cherry-picked here; the only conflict was theindex.tsgate above. Not yet run: the iOS TurboModule test (npm run test-rn-turbomodule) against the changed podspec. iOS paths are unchanged in source, so that run is what this draft is waiting on.Build note: on a Mac whose libclang is arm64-only, the x86_64 metadata generator doesn't link; copy the arm64 generator into
metadata-generator/dist/x86_64and writedist/.source_hash(the hash covers absolute paths, so it's per checkout).Merge Danger
Door: two-way
Blast Radius: packaging
The tarball grows by the two macOS
.nsmdfiles (~6.5 MB each), the macOS signature-dispatch table (~8.5 MB source) and a macOS libffi slice. iOS consumers get the same sources and resources as before, selected throughs.ios.*.