forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 32
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
54ec59a
commit a3575ec
Showing
7 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
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
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,24 @@ | ||
<h1 align="center"> | ||
<a href="https://reactnative.dev/"> | ||
React Native Vision OS | ||
</a> | ||
</h1> | ||
|
||
<p align="center"> | ||
<strong>Learn once, write anywhere:</strong><br> | ||
Build spatial apps with React. | ||
</p> | ||
|
||
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. | ||
|
||
This project is still at an early stage of development and is not ready for production use. | ||
|
||
## Contributing | ||
|
||
1. Download latest Xcode beta [here](https://developer.apple.com/xcode/). | ||
2. Install visionOS Simulator runtime. | ||
3. (Optional) Using Hermes - Install latest version of CMake (3.28) from `main` branch: | ||
```sh | ||
brew install cmake --HEAD | ||
``` | ||
4. Follow the same steps as for running iOS defined in [packages/rn-tester/README.md](./packages/rn-tester/README.md) |
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
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
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
22 changes: 22 additions & 0 deletions
22
...mplate/patches/@react-native+community-cli-plugin+0.74.0-nightly-20231123-342041e9e.patch
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,22 @@ | ||
diff --git a/node_modules/@react-native/community-cli-plugin/dist/utils/metroPlatformResolver.js b/node_modules/@react-native/community-cli-plugin/dist/utils/metroPlatformResolver.js | ||
index 5cd205a..fa8a320 100644 | ||
--- a/node_modules/@react-native/community-cli-plugin/dist/utils/metroPlatformResolver.js | ||
+++ b/node_modules/@react-native/community-cli-plugin/dist/utils/metroPlatformResolver.js | ||
@@ -31,13 +31,14 @@ exports.reactNativePlatformResolver = reactNativePlatformResolver; | ||
*/ | ||
function reactNativePlatformResolver(platformImplementations) { | ||
return (context, moduleName, platform) => { | ||
+ let platformOrVariant = context.customResolverOptions.variant || platform; | ||
let modifiedModuleName = moduleName; | ||
- if (platform != null && platformImplementations[platform]) { | ||
+ if (platformOrVariant != null && platformImplementations[platformOrVariant]) { | ||
if (moduleName === "react-native") { | ||
- modifiedModuleName = platformImplementations[platform]; | ||
+ modifiedModuleName = platformImplementations[platformOrVariant]; | ||
} else if (moduleName.startsWith("react-native/")) { | ||
modifiedModuleName = `${ | ||
- platformImplementations[platform] | ||
+ platformImplementations[platformOrVariant] | ||
}/${modifiedModuleName.slice("react-native/".length)}`; | ||
} | ||
} |
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