Learn once, write anywhere:
Build spatial apps with React.
React Native Vision OS allows you to write visionOS with full support for platform SDK. This is a full fork of the main repository with changes needed to support visionOS.
Caution
This project is still at an early stage of development and is not ready for production use.
- Make sure you have a proper development environment setup
- Download the latest Xcode beta here.
- Install visionOS Simulator runtime.
- Install the latest version of CMake (at least v3.28.0)
- Initialize the project using this command:
npx @callstack/react-native-visionos@latest init YourApp
- Next, go to
YourApp/visionos
folder and run following commands to install Pods:
cd visionos
bundle install
bundle exec pod install
- Open
YourApp/visionos/YourApp.xcworkspace
using Xcode 15 Beta. - Build the app by clicking the "Run" button in Xcode.
We suggest you read Human Interface Guidelines for visionOS when creating visionOS apps.
It's important not to cover the translucent background with a solid color, as it helps to ground apps and make them feel like part of the environment.
- Follow the same steps as in the
New project creation
section. - Checkout
rn-tester
README.md to build React Native from source.
We use a script called oot-release.js
which automatically releases visionos
packages and aligns versions of dependencies with React Native core.
Usage:
node ./scripts/oot-release.js --new-version "<visionos-version>" --react-native-version "<react-native-version>" --one-time-password "<otp>"
To test releases and template we use Verdaccio.