-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Windows New Arch Support (#278)
- Loading branch information
1 parent
fbbae4c
commit b18b626
Showing
23 changed files
with
1,954 additions
and
1,535 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<add key="react-native" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" /> | ||
<add key="Nuget.org" value="https://api.nuget.org/v3/index.json" /> | ||
</packageSources> | ||
<disabledPackageSources> | ||
<clear /> | ||
</disabledPackageSources> | ||
</configuration> |
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 |
---|---|---|
@@ -1,41 +1,42 @@ | ||
{ | ||
"name": "Example", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"android": "react-native run-android", | ||
"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", | ||
"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", | ||
"ios": "react-native run-ios", | ||
"mkdist": "node -e \"require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\"", | ||
"start": "react-native start", | ||
"test": "jest" | ||
}, | ||
"dependencies": { | ||
"@react-native-clipboard/clipboard": "1.15.0", | ||
"react": "18.3.1", | ||
"react-native": "0.76.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.25.2", | ||
"@babel/preset-env": "^7.25.3", | ||
"@babel/runtime": "^7.25.0", | ||
"@react-native-community/cli": "15.0.1", | ||
"@react-native-community/cli-platform-android": "15.0.1", | ||
"@react-native-community/cli-platform-ios": "15.0.1", | ||
"@react-native/babel-preset": "0.76.3", | ||
"@react-native/metro-config": "0.76.3", | ||
"@react-native/typescript-config": "0.76.3", | ||
"@rnx-kit/metro-config": "^2.0.0", | ||
"@types/react": "^18.2.6", | ||
"@types/react-test-renderer": "^18.0.0", | ||
"babel-jest": "^29.6.3", | ||
"jest": "^29.6.3", | ||
"react-native-test-app": "^4.0.4", | ||
"react-test-renderer": "18.3.1", | ||
"typescript": "5.0.4" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
} | ||
"name": "Example", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"android": "react-native run-android", | ||
"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", | ||
"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", | ||
"ios": "react-native run-ios", | ||
"mkdist": "node -e \"require('node:fs').mkdirSync('dist', { recursive: true, mode: 0o755 })\"", | ||
"start": "react-native start", | ||
"test": "jest" | ||
}, | ||
"dependencies": { | ||
"@react-native-clipboard/clipboard": "1.15.0", | ||
"react": "18.3.1", | ||
"react-native": "^0.75.3", | ||
"react-native-windows": "^0.75.0" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Bardiamist
|
||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.25.2", | ||
"@babel/preset-env": "^7.25.3", | ||
"@babel/runtime": "^7.25.0", | ||
"@react-native-community/cli": "^15.0.1", | ||
"@react-native-community/cli-platform-android": "^15.0.1", | ||
"@react-native-community/cli-platform-ios": "^15.0.1", | ||
"@react-native/babel-preset": "^0.75.3", | ||
"@react-native/metro-config": "^0.75.3", | ||
"@react-native/typescript-config": "^0.75.3", | ||
"@rnx-kit/metro-config": "^2.0.0", | ||
"@types/react": "^18.2.6", | ||
"@types/react-test-renderer": "^18.0.0", | ||
"babel-jest": "^29.6.3", | ||
"jest": "^29.6.3", | ||
"react-native-test-app": "^4.0.5", | ||
"react-test-renderer": "^18.3.1", | ||
"typescript": "5.0.4" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,12 +2,7 @@ | |
"name": "@react-native-clipboard/clipboard", | ||
"version": "1.15.0", | ||
"description": "React Native Clipboard API for macOS, iOS, Android, and Windows", | ||
"keywords": [ | ||
"Clipboard", | ||
"getString", | ||
"react-native", | ||
"setString" | ||
], | ||
"keywords": ["Clipboard", "getString", "react-native", "setString"], | ||
"homepage": "https://github.com/react-native-clipboard/clipboard#readme", | ||
"bugs": { | ||
"url": "https://github.com/react-native-clipboard/clipboard/issues" | ||
|
@@ -36,6 +31,7 @@ | |
"android": "react-native run-android --root example", | ||
"windows": "cd example && react-native run-windows", | ||
"start:windows": "install-windows-test-app -p example/windows && react-native run-windows --root example --logging", | ||
"start:windows:fabric": "install-windows-test-app -p example/windows --use-fabric && react-native run-windows --root example --logging", | ||
"start": "react-native start", | ||
"build": "tsc", | ||
"format": "biome format --write .", | ||
|
@@ -47,23 +43,25 @@ | |
"jest": { | ||
"preset": "react-native" | ||
}, | ||
"dependencies": { | ||
"react-native": "^0.75.3", | ||
"react-native-windows": "^0.75.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.9", | ||
"@biomejs/biome": "1.9.4", | ||
"@callstack/react-native-visionos": "^0.76.0", | ||
"@react-native/babel-preset": "^0.76.0", | ||
"@react-native/metro-config": "^0.76.0", | ||
"@react-native/babel-preset": "^0.75.0", | ||
"@react-native/metro-config": "^0.75.0", | ||
"@rnx-kit/align-deps": "^2.4.1", | ||
"@rnx-kit/metro-config": "^2.0.0", | ||
"@types/react": "^18.2.0", | ||
"@typescript-eslint/eslint-plugin": "^8.16.0", | ||
"babel-jest": "^26.1.0", | ||
"jest": "^29.2.1", | ||
"react": "18.2.0", | ||
"react-native": "^0.76.0", | ||
"react": "^18.3.1", | ||
"react-native-macos": "0.76.0", | ||
"react-native-test-app": "^4.0.1", | ||
"react-native-windows": "^0.76.0", | ||
"react-native-test-app": "^4.0.5", | ||
"react-test-renderer": "^18.2.0", | ||
"typescript": "^4.4.3" | ||
}, | ||
|
@@ -90,10 +88,20 @@ | |
"jsSrcsDir": "./src", | ||
"android": { | ||
"javaPackageName": "com.reactnativecommunity.clipboard" | ||
}, | ||
"windows": { | ||
"namespace": "ClipboardCodegen", | ||
"outputDirectory": "windows/Clipboard/codegen", | ||
"separateDataTypes": true | ||
} | ||
}, | ||
"packageManager": "[email protected]", | ||
"workspaces": [ | ||
"example" | ||
] | ||
"workspaces": ["example"], | ||
"react-native-windows": { | ||
"init-windows": { | ||
"name": "Clipboard", | ||
"namespace": "Clipboard", | ||
"template": "cpp-lib" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.
@Yajur-Grover It leads to problems when I use react-native 0.76.6