generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9de7a12
commit e106975
Showing
40 changed files
with
8,449 additions
and
1,270 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"label": "Getting Started", | ||
"position": 2, | ||
"link": { | ||
"type": "generated-index" | ||
}, | ||
"collapsed": false | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
|
||
# Create your first App | ||
|
||
1. Make sure you have a [proper development environment setup](https://reactnative.dev/docs/environment-setup) | ||
2. Download the latest Xcode (at least 15.2). | ||
3. Install visionOS simulator runtime. | ||
4. Install the latest version of CMake (at least v3.28.0). | ||
5. Initialize the project using this command: | ||
|
||
```sh | ||
npx @callstack/react-native-visionos@latest init YourApp | ||
``` | ||
|
||
6. Next, go to `YourApp/visionos` folder and run following commands to install Pods: | ||
|
||
```sh | ||
bundle install | ||
bundle exec pod install | ||
``` | ||
|
||
7. Now you can run `yarn visionos` | ||
8. (Optional) you also can open project using Xcode (`xed YourApp/visionos/YourApp.xcworkspace`). | ||
|
||
- Build the app by clicking the "Run" button in Xcode. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Platform Guidelines | ||
|
||
We suggest you read [Human Interface Guidelines for visionOS](https://developer.apple.com/design/human-interface-guidelines/designing-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. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,26 @@ | ||
--- | ||
sidebar_position: 1 | ||
slug: / | ||
--- | ||
|
||
# Tutorial Intro | ||
# Introduction | ||
|
||
Let's discover **Docusaurus in less than 5 minutes**. | ||
:::warning | ||
|
||
## Getting Started | ||
This project is still at an early stage of development and is not ready for production use. | ||
|
||
Get started by **creating a new site**. | ||
::: | ||
|
||
Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**. | ||
> Learn once, write anywhere: Build spatial apps with React. | ||
### What you'll need | ||
React Native visionOS allows you to write visionOS **apps with full support for platform SDK**. This is a full fork of the main repository with changes needed to support visionOS. | ||
|
||
- [Node.js](https://nodejs.org/en/download/) version 18.0 or above: | ||
- When installing Node.js, you are recommended to check all checkboxes related to dependencies. | ||
![Welcome](../static/img/welcome-rn-visionos.png) | ||
|
||
## Generate a new site | ||
## How is it different from running app in compatibility mode? | ||
|
||
Generate a new Docusaurus site using the **classic template**. | ||
React Native visionOS unlocks full capabilities of the platform, giving your app transparent look that feels right at home next to other visionOS apps. It allows you to leverage the power of ImmersiveSpaces and multi-window apps. | ||
|
||
The classic template will automatically be added to your project after you run the command: | ||
Side by side comparison of running the same app: React Native visionOS vs React Native iOS (Compatibility mode). | ||
|
||
```bash | ||
npm init docusaurus@latest my-website classic | ||
``` | ||
|
||
You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor. | ||
|
||
The command also installs all necessary dependencies you need to run Docusaurus. | ||
|
||
## Start your site | ||
|
||
Run the development server: | ||
|
||
```bash | ||
cd my-website | ||
npm run start | ||
``` | ||
|
||
The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there. | ||
|
||
The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/. | ||
|
||
Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes. | ||
<video width="100%" controls src="https://github.com/callstack/react-native-visionos/assets/52801365/dd5d6351-3843-4f4a-ae67-541c068ac7be"/> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.