Skip to content

Commit 013bb22

Browse files
Saadnajmitido64
andauthored
feat: Add visionOS support (#748)
* Update to React Native 0.73 * Remove extra package.json * Use yarn 4 * yarn dedupe * Add visionOS support * Apply suggestions from code review Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com> * Update metro config * udpate lock --------- Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
1 parent c9cfc7f commit 013bb22

15 files changed

+16157
-9385
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ android/keystores/debug.keystore
6060
lib/
6161

6262
# yarn
63-
.yarn
63+
.yarn/install-state.gz

.yarn/releases/yarn-4.1.1.cjs

+893
Large diffs are not rendered by default.

.yarnrc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.1.1.cjs

example/app.json

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
"dist/assets",
2121
"dist/main.macos.jsbundle"
2222
],
23+
"visionos": [
24+
"dist/assets",
25+
"dist/main.visionos.jsbundle"
26+
],
2327
"windows": [
2428
"dist/assets",
2529
"dist/main.windows.bundle"

example/ios/Podfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
require_relative '../node_modules/react-native-test-app/test_app'
1+
ws_dir = Pathname.new(__dir__)
2+
ws_dir = ws_dir.parent until
3+
File.exist?("#{ws_dir}/node_modules/react-native-test-app/test_app.rb") ||
4+
ws_dir.expand_path.to_s == '/'
5+
require "#{ws_dir}/node_modules/react-native-test-app/test_app.rb"
26

37
workspace 'MenuExample.xcworkspace'
48

0 commit comments

Comments
 (0)