microsoft / react-native-macos

A framework for building native macOS apps with React.
https://microsoft.github.io/react-native-windows/
MIT License
3.45k stars 132 forks source link

Add visionOS support #2019

Closed Saadnajmi closed 7 months ago

Saadnajmi commented 8 months ago

Please select one of the following

Summary:

This is the last PR (for now) in a series of PRs to add visionOS support to React Native macOS

Add the actual native support for visionOS. This is done mostly with nicely placed ifdefs. Some notes:

Changelog:

[INTERNAL] [ADDED] - Add visionOS support

Test Plan:

We can't test the RNTester-visionOS in CI yet (sadly), as we need an Arm64 image of macOS with the visionOS SDK to build visionOS, and Azure Pipelines doesn't seem to have that currently. Instead, let's locally verify that the scheme builds and runs. I took this screenshot with #2056 also cherry-picked because as of the time of writing, that PR hasn't landed yet.

Screenshot 2024-01-25 at 10 23 47 PM