Skip to content

Commit

Permalink
chore: remove oot-platforms package
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Jan 31, 2025
1 parent a59ad5f commit 32bc437
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 115 deletions.
2 changes: 0 additions & 2 deletions packages/out-of-tree-platforms/.gitignore

This file was deleted.

19 changes: 0 additions & 19 deletions packages/out-of-tree-platforms/README.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/out-of-tree-platforms/index.js.flow

This file was deleted.

27 changes: 0 additions & 27 deletions packages/out-of-tree-platforms/package.json

This file was deleted.

43 changes: 0 additions & 43 deletions packages/out-of-tree-platforms/src/getPlatformResolver.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/out-of-tree-platforms/src/index.flow.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/out-of-tree-platforms/src/index.js

This file was deleted.

56 changes: 50 additions & 6 deletions packages/react-native/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,52 @@
# Where is the template?
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).
<h1 align="center">
<a href="https://callstack.github.io/react-native-visionos-docs">
React Native visionOS
</a>
</h1>

## Why has it moved?
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.
<p align="center">
<strong>Learn once, write anywhere:</strong><br>
Build spatial apps with React.
</p>

## When was it moved?
The 0.75 release.
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.

![Screenshot](https://github.com/callstack/react-native-visionos/assets/52801365/0fcd5e5f-628c-49ef-84ab-d1d4675a011a)

## 🎉 Building your first spatial React Native app
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:

```sh
npx @callstack/react-native-visionos@latest init YourApp
```


## 📖 Documentation

The full documentation for React Native visionOS can be found on our [website](https://callstack.github.io/react-native-visionos-docs).

The source for the React Native visionOS documentation and website is hosted on a separate repo, @callstack/react-native-visionos-docs.

## Contributing

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](./packages/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.

## Release process

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 "<visionos-version>" --react-native-version "<react-native-version>" --one-time-password "<otp>"
```

To test releases and template we use [Verdaccio](https://verdaccio.org/).
2 changes: 1 addition & 1 deletion packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@
}
]
}
}
}
3 changes: 1 addition & 2 deletions packages/rn-tester/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"@react-native/popup-menu-android": "0.77.0-main",
"flow-enums-runtime": "^0.0.6",
"invariant": "^2.2.4",
"nullthrows": "^1.1.1",
"@callstack/out-of-tree-platforms": "0.77.0-main"
"nullthrows": "^1.1.1"
},
"peerDependencies": {
"react": "19.0.0",
Expand Down
4 changes: 0 additions & 4 deletions scripts/build/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ const buildConfig /*: BuildConfig */ = {
emitTypeScriptDefs: true,
target: 'node',
},
'out-of-tree-platforms': {
emitTypeScriptDefs: true,
target: 'node',
},
},
};

Expand Down

0 comments on commit 32bc437

Please sign in to comment.