Skip to content

Commit b257641

Browse files
authored
Revert "feat: add Windows New Arch Support (#274)"
This reverts commit 16b0a4a.
1 parent 16b0a4a commit b257641

23 files changed

+1179
-774
lines changed

NuGet.config

-11
This file was deleted.

example/package.json

+39-40
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,41 @@
11
{
2-
"name": "Example",
3-
"version": "0.0.1",
4-
"private": true,
5-
"scripts": {
6-
"android": "react-native run-android",
7-
"build:android": "npm run mkdist && react-native bundle --entry-file index.js --platform android --dev true --bundle-output dist/main.android.jsbundle --assets-dest dist/res",
8-
"build:ios": "npm run mkdist && react-native bundle --entry-file index.js --platform ios --dev true --bundle-output dist/main.ios.jsbundle --assets-dest dist",
9-
"ios": "react-native run-ios",
10-
"mkdist": "node -e \"require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\"",
11-
"start": "react-native start",
12-
"test": "jest"
13-
},
14-
"dependencies": {
15-
"@react-native-clipboard/clipboard": "1.15.0",
16-
"react": "18.3.1",
17-
"react-native": "^0.76.3",
18-
"react-native-windows": "0.76.1"
19-
},
20-
"devDependencies": {
21-
"@babel/core": "^7.25.2",
22-
"@babel/preset-env": "^7.25.3",
23-
"@babel/runtime": "^7.25.0",
24-
"@react-native-community/cli": "^15.0.1",
25-
"@react-native-community/cli-platform-android": "^15.0.1",
26-
"@react-native-community/cli-platform-ios": "^15.0.1",
27-
"@react-native/babel-preset": "^0.76.3",
28-
"@react-native/metro-config": "^0.76.3",
29-
"@react-native/typescript-config": "^0.76.3",
30-
"@rnx-kit/metro-config": "^2.0.0",
31-
"@types/react": "^18.2.6",
32-
"@types/react-test-renderer": "^18.0.0",
33-
"babel-jest": "^29.6.3",
34-
"jest": "^29.6.3",
35-
"react-native-test-app": "^4.0.5",
36-
"react-test-renderer": "^18.3.1",
37-
"typescript": "5.0.4"
38-
},
39-
"engines": {
40-
"node": ">=18"
41-
}
2+
"name": "Example",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"android": "react-native run-android",
7+
"build:android": "npm run mkdist && react-native bundle --entry-file index.js --platform android --dev true --bundle-output dist/main.android.jsbundle --assets-dest dist/res",
8+
"build:ios": "npm run mkdist && react-native bundle --entry-file index.js --platform ios --dev true --bundle-output dist/main.ios.jsbundle --assets-dest dist",
9+
"ios": "react-native run-ios",
10+
"mkdist": "node -e \"require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\"",
11+
"start": "react-native start",
12+
"test": "jest"
13+
},
14+
"dependencies": {
15+
"@react-native-clipboard/clipboard": "1.15.0",
16+
"react": "18.3.1",
17+
"react-native": "0.76.3"
18+
},
19+
"devDependencies": {
20+
"@babel/core": "^7.25.2",
21+
"@babel/preset-env": "^7.25.3",
22+
"@babel/runtime": "^7.25.0",
23+
"@react-native-community/cli": "15.0.1",
24+
"@react-native-community/cli-platform-android": "15.0.1",
25+
"@react-native-community/cli-platform-ios": "15.0.1",
26+
"@react-native/babel-preset": "0.76.3",
27+
"@react-native/metro-config": "0.76.3",
28+
"@react-native/typescript-config": "0.76.3",
29+
"@rnx-kit/metro-config": "^2.0.0",
30+
"@types/react": "^18.2.6",
31+
"@types/react-test-renderer": "^18.0.0",
32+
"babel-jest": "^29.6.3",
33+
"jest": "^29.6.3",
34+
"react-native-test-app": "^4.0.4",
35+
"react-test-renderer": "18.3.1",
36+
"typescript": "5.0.4"
37+
},
38+
"engines": {
39+
"node": ">=18"
40+
}
4241
}

package.json

+5-20
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"android": "react-native run-android --root example",
3737
"windows": "cd example && react-native run-windows",
3838
"start:windows": "install-windows-test-app -p example/windows && react-native run-windows --root example --logging",
39-
"start:windows:fabric": "install-windows-test-app -p example/windows --use-fabric && react-native run-windows --root example --logging",
4039
"start": "react-native start",
4140
"build": "tsc",
4241
"format": "biome format --write .",
@@ -48,10 +47,6 @@
4847
"jest": {
4948
"preset": "react-native"
5049
},
51-
"dependencies": {
52-
"react-native": "^0.76.3",
53-
"react-native-windows": "0.76.1"
54-
},
5550
"devDependencies": {
5651
"@babel/core": "^7.12.9",
5752
"@biomejs/biome": "1.9.4",
@@ -64,9 +59,11 @@
6459
"@typescript-eslint/eslint-plugin": "^8.16.0",
6560
"babel-jest": "^26.1.0",
6661
"jest": "^29.2.1",
67-
"react": "^18.3.1",
62+
"react": "18.2.0",
63+
"react-native": "^0.76.0",
6864
"react-native-macos": "0.76.0",
69-
"react-native-test-app": "^4.0.5",
65+
"react-native-test-app": "^4.0.1",
66+
"react-native-windows": "^0.76.0",
7067
"react-test-renderer": "^18.2.0",
7168
"typescript": "^4.4.3"
7269
},
@@ -93,22 +90,10 @@
9390
"jsSrcsDir": "./src",
9491
"android": {
9592
"javaPackageName": "com.reactnativecommunity.clipboard"
96-
},
97-
"windows": {
98-
"namespace": "ClipboardCodegen",
99-
"outputDirectory": "windows/Clipboard/codegen",
100-
"separateDataTypes": true
10193
}
10294
},
10395
"packageManager": "[email protected]",
10496
"workspaces": [
10597
"example"
106-
],
107-
"react-native-windows": {
108-
"init-windows": {
109-
"name": "Clipboard",
110-
"namespace": "Clipboard",
111-
"template": "cpp-app"
112-
}
113-
}
98+
]
11499
}

react-native.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232
platforms: {
3333
windows: {
3434
sourceDir: "windows",
35-
solutionFile: "Clipboard.sln",
35+
solutionFile: "windows.sln",
3636
projects: [
3737
{
3838
projectFile: "Clipboard/Clipboard.vcxproj",

0 commit comments

Comments
 (0)