From 40633328b221272679a14ac27d76959660a24564 Mon Sep 17 00:00:00 2001 From: Asen Mitrev Date: Thu, 26 Oct 2023 22:45:29 +0300 Subject: [PATCH] Move react-native-picker to peer dependencies (#523) Co-authored-by: Asen Mitrev --- README.md | 2 ++ package.json | 5 ++++- yarn.lock | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3bcb6508..d43a800f 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ For either platform, you can alternatively pass down a child element of your cho ### Installing +This package is built around and depends on [@react-native-picker/picker](https://github.com/react-native-picker/picker). Please make sure you install it correctly (as seen below in installation steps). + ``` npm install react-native-picker-select diff --git a/package.json b/package.json index 022e2254..8722e9fc 100644 --- a/package.json +++ b/package.json @@ -24,10 +24,10 @@ "/src" ], "dependencies": { - "@react-native-picker/picker": "^1.8.3", "lodash.isequal": "^4.5.0" }, "devDependencies": { + "@react-native-picker/picker": "^2.4.0", "@types/react-native": "^0.60.22", "babel-jest": "^23.6.0", "babel-preset-react-native": "^4.0.1", @@ -52,6 +52,9 @@ "react-native": "0.57.7", "react-test-renderer": "^16.6.1" }, + "peerDependencies": { + "@react-native-picker/picker": "^2.4.0" + }, "scripts": { "test": "jest", "test:watch": "jest --watch", diff --git a/yarn.lock b/yarn.lock index 6e076b1b..7757bf20 100644 --- a/yarn.lock +++ b/yarn.lock @@ -999,10 +999,10 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@react-native-picker/picker@^1.8.3": - version "1.8.3" - resolved "https://registry.yarnpkg.com/@react-native-picker/picker/-/picker-1.8.3.tgz#fcbf969a4add749fc37ef064a5eb55eadc93db39" - integrity sha512-zfr8k9L5BJVN7fIrmrto1cCptZjkGoiKWeZTsCR+XormQnWj0Tqrv0S9Ni3SvdT5JZ2OAQ9H+edMRSUvrAxwQA== +"@react-native-picker/picker@^2.4.0": + version "2.5.1" + resolved "https://registry.yarnpkg.com/@react-native-picker/picker/-/picker-2.5.1.tgz#dfa13d5b97bfbedf1f7e7c608181a82f1d58b351" + integrity sha512-/sADUfQsosMRYtrqqL3ZYZSECRygj0fXtpRLqxJfwuMEoqfvfn40756R6B1alzusVvDRZFI0ari0iQid56hA/Q== "@types/json5@^0.0.29": version "0.0.29"