From 4eb5aa6c3aa4b847ad2bd85009e62384d17112d1 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Thu, 20 Jun 2024 10:19:56 +0200 Subject: [PATCH] fix(web-storage): workaround autolinking issues For context, see https://github.com/react-native-community/cli/issues/2419 --- .changeset/tricky-comics-obey.md | 5 +++++ incubator/@react-native-webapis/web-storage/package.json | 2 ++ yarn.lock | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 .changeset/tricky-comics-obey.md diff --git a/.changeset/tricky-comics-obey.md b/.changeset/tricky-comics-obey.md new file mode 100644 index 000000000..c734da665 --- /dev/null +++ b/.changeset/tricky-comics-obey.md @@ -0,0 +1,5 @@ +--- +"@react-native-webapis/web-storage": patch +--- + +Workaround for autolinking not including macOS or Windows as target platforms (see https://github.com/react-native-community/cli/issues/2419) diff --git a/incubator/@react-native-webapis/web-storage/package.json b/incubator/@react-native-webapis/web-storage/package.json index 087015f6f..5dc272cd2 100644 --- a/incubator/@react-native-webapis/web-storage/package.json +++ b/incubator/@react-native-webapis/web-storage/package.json @@ -66,6 +66,8 @@ "prettier": "^3.0.0", "react": "18.2.0", "react-native": "^0.73.0", + "react-native-macos": "^0.73.0", + "react-native-windows": "^0.73.0", "typescript": "^5.0.0" }, "codegenConfig": { diff --git a/yarn.lock b/yarn.lock index c3b318568..766d898c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3305,6 +3305,8 @@ __metadata: prettier: "npm:^3.0.0" react: "npm:18.2.0" react-native: "npm:^0.73.0" + react-native-macos: "npm:^0.73.0" + react-native-windows: "npm:^0.73.0" typescript: "npm:^5.0.0" peerDependencies: "@callstack/react-native-visionos": ">=0.73"