From 2c34e87d913d109101a61d152ded9f2c91be4ccf Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Wed, 21 Jun 2023 04:14:25 -0700 Subject: [PATCH] fix(virtualized-lists): `react-test-renderer` is not a runtime dependency (#37955) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Installing `react-native` 0.72.x causes a warning about `react-test-renderer` because `react-native/virtualized-lists` has declared a peer dependency on it. As far as I know, it is not used for anything but tests. ``` ➤ YN0002: │ react-native@npm:0.72.0-rc.6 [292eb] doesn't provide react-test-renderer (p5a2fb), requested by react-native/virtualized-lists ``` Note that while many package managers default to warnings in this case, there are still a number of users out there for which this is an error. [GENERAL] [FIXED] - `react-native/virtualized-lists` does not need `react-test-renderer` at runtime Pull Request resolved: https://github.com/facebook/react-native/pull/37955 Test Plan: n/a Reviewed By: rshest Differential Revision: D46871536 Pulled By: NickGerleman fbshipit-source-id: 1e5e15608ab394bc43cd4e6ac727a74734874642 --- packages/virtualized-lists/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/virtualized-lists/package.json b/packages/virtualized-lists/package.json index 1e2f1d89a098a0..e2560c9ce8902d 100644 --- a/packages/virtualized-lists/package.json +++ b/packages/virtualized-lists/package.json @@ -22,8 +22,7 @@ "react-test-renderer": "18.2.0" }, "peerDependencies": { - "react-native": "*", - "react-test-renderer": "18.2.0" + "react-native": "*" }, "beachball": { "shouldPublish": true