|
1 | | -# Where is the template? |
2 | | -The React Native Template has moved from being shipping inside the [react-native](https://www.npmjs.com/package/react-native) package to it's own package: [@react-native-community/template](https://github.com/react-native-community/template). |
| 1 | +<h1 align="center"> |
| 2 | + <a href="https://callstack.github.io/react-native-visionos-docs"> |
| 3 | + React Native visionOS |
| 4 | + </a> |
| 5 | +</h1> |
3 | 6 |
|
4 | | -## Why has it moved? |
5 | | -The [React Native Frameworks RFC0759](https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0759-react-native-frameworks.md#evolving-the-react-native-community-template--cli) provides background information. |
| 7 | +<p align="center"> |
| 8 | + <strong>Learn once, write anywhere:</strong><br> |
| 9 | + Build spatial apps with React. |
| 10 | +</p> |
6 | 11 |
|
7 | | -## When was it moved? |
8 | | -The 0.75 release. |
| 12 | +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. |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +## 🎉 Building your first spatial React Native app |
| 17 | +Follow the [Getting Started](https://callstack.github.io/react-native-visionos-docs/category/getting-started) guide. If you wish to get started quickly, you can utilize this command: |
| 18 | + |
| 19 | +```sh |
| 20 | +npx @callstack/react-native-visionos@latest init YourApp |
| 21 | +``` |
| 22 | + |
| 23 | + |
| 24 | +## 📖 Documentation |
| 25 | + |
| 26 | +The full documentation for React Native visionOS can be found on our [website](https://callstack.github.io/react-native-visionos-docs). |
| 27 | + |
| 28 | +The source for the React Native visionOS documentation and website is hosted on a separate repo, @callstack/react-native-visionos-docs. |
| 29 | + |
| 30 | +## Contributing |
| 31 | + |
| 32 | +Prerequisites: |
| 33 | +- Download the latest Xcode (at least 15.2) |
| 34 | +- Install the latest version of CMake (at least v3.29.0) |
| 35 | + |
| 36 | +Check out `rn-tester` [README.md](./packages/rn-tester/README.md) to build React Native from the source. |
| 37 | + |
| 38 | +Remember to use `RNTester-visionOS` target |
| 39 | + |
| 40 | +If `RNTester-visionOS` scheme is not showing up, click "New Scheme", which should be pre-populated with `RNTester-visionOS`. Build the app using Xcode. |
| 41 | + |
| 42 | +## Release process |
| 43 | + |
| 44 | +We use a script called `oot-release.js` which automatically releases `visionos` packages and aligns versions of dependencies with React Native core. |
| 45 | + |
| 46 | +Usage: |
| 47 | + |
| 48 | +```sh |
| 49 | +node ./scripts/oot-release.js --new-version "<visionos-version>" --react-native-version "<react-native-version>" --one-time-password "<otp>" |
| 50 | +``` |
| 51 | + |
| 52 | +To test releases and template we use [Verdaccio](https://verdaccio.org/). |
0 commit comments