Skip to content

Commit ff111d1

Browse files
committed
Revert "feat: add visionOS"
This reverts commit a36cd88.
1 parent a36cd88 commit ff111d1

17 files changed

Lines changed: 6 additions & 1159 deletions

File tree

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@callstack/visionos-template",
2+
"name": "@react-native-community/template",
33
"version": "0.79.6",
44
"description": "The template used by `npx @react-native-community/cli init` to bootstrap a React Native application.",
55
"license": "MIT",
@@ -13,8 +13,7 @@
1313
"type": "commonjs",
1414
"files": [
1515
"template/*",
16-
"template.config.js",
17-
"postInitScript.js"
16+
"template.config.js"
1817
],
1918
"dependencies": {},
2019
"devDependencies": {
@@ -26,4 +25,4 @@
2625
"type": "git",
2726
"url": "git+https://github.com/react-native-community/template.git"
2827
}
29-
}
28+
}

postInitScript.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

template.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,4 @@ module.exports = {
99
placeholderName: 'HelloWorld',
1010
titlePlaceholder: 'Hello App Display Name',
1111
templateDir: './template',
12-
platforms: ['visionos'],
13-
postInitScript: './postInitScript.js',
1412
};

template/metro.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
2-
const {getPlatformResolver} = require('@callstack/out-of-tree-platforms');
32

43
/**
54
* Metro configuration
65
* https://reactnative.dev/docs/metro
76
*
87
* @type {import('@react-native/metro-config').MetroConfig}
98
*/
10-
11-
12-
const config = {
13-
resolver: {
14-
resolveRequest: getPlatformResolver({
15-
platformNameMap: {visionos: '@callstack/react-native-visionos'},
16-
}),
17-
},
18-
};
9+
const config = {};
1910

2011
module.exports = mergeConfig(getDefaultConfig(__dirname), config);

template/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
},
1212
"dependencies": {
1313
"react": "19.0.0",
14-
"react-native": "0.79.6",
15-
"@callstack/react-native-visionos": "0.79.6"
14+
"react-native": "0.79.6"
1615
},
1716
"devDependencies": {
1817
"@babel/core": "^7.25.2",
@@ -21,7 +20,6 @@
2120
"@react-native-community/cli": "18.0.0",
2221
"@react-native-community/cli-platform-android": "18.0.0",
2322
"@react-native-community/cli-platform-ios": "18.0.0",
24-
"@react-native-community/cli-platform-apple": "18.0.0",
2523
"@react-native/babel-preset": "0.79.6",
2624
"@react-native/eslint-config": "0.79.6",
2725
"@react-native/metro-config": "0.79.6",
@@ -38,4 +36,4 @@
3836
"engines": {
3937
"node": ">=18"
4038
}
41-
}
39+
}

0 commit comments

Comments
 (0)