React Native for visionOS
npm install @callstack/react-native-visionos
Learn once, write anywhere:
Build spatial apps with React.
React Native visionOS 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.
``sh`
npx @callstack/react-native-visionos@latest init YourApp
The full documentation for React Native visionOS can be found on our website.
The source for the React Native visionOS documentation and website is hosted on a separate repo, @callstack/react-native-visionos-docs.
Prerequisites:
- Download the latest Xcode (at least 15.2)
- Install the latest version of CMake (at least v3.29.0)
Check out rn-tester README.md to build React Native from the source.
Remember to use RNTester-visionOS target
If RNTester-visionOS scheme is not showing up, click "New Scheme", which should be pre-populated with RNTester-visionOS. Build the app using Xcode.
We use a script called oot-release.js which automatically releases visionos packages and aligns versions of dependencies with React Native core.
Usage:
`sh``
node ./scripts/oot-release.js --new-version "
To test releases and template we use Verdaccio.