From b35ee3f618060b3490ef88a37e2629449f1074f7 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 17 Jun 2021 14:48:20 -0300 Subject: [PATCH] react-native-picker-select --- package.json | 2 +- .../react-native-picker-select+7.0.0.patch | 22 ------------------- yarn.lock | 14 ++++++++---- 3 files changed, 11 insertions(+), 27 deletions(-) delete mode 100644 patches/react-native-picker-select+7.0.0.patch diff --git a/package.json b/package.json index d351d8aeb..db1f612e0 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "react-native-notifications": "2.1.7", "react-native-notifier": "1.6.1", "react-native-orientation-locker": "1.3.1", - "react-native-picker-select": "7.0.0", + "react-native-picker-select": "^8.0.4", "react-native-platform-touchable": "1.1.1", "react-native-popover-view": "3.0.3", "react-native-progress": "4.1.2", diff --git a/patches/react-native-picker-select+7.0.0.patch b/patches/react-native-picker-select+7.0.0.patch deleted file mode 100644 index 007a93e53..000000000 --- a/patches/react-native-picker-select+7.0.0.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/node_modules/react-native-picker-select/src/index.js b/node_modules/react-native-picker-select/src/index.js -index 30a6732..bd1ccb5 100644 ---- a/node_modules/react-native-picker-select/src/index.js -+++ b/node_modules/react-native-picker-select/src/index.js -@@ -138,7 +138,7 @@ export default class RNPickerSelect extends PureComponent { - } - - return { -- ...(itemsChanged ? { items } : {}), -+ ...(itemsChanged ? { items: !isEqual(selectedItem, {}) ? items.filter(item => item.value !== null) : items } : {}), - ...(selectedItemChanged ? { selectedItem } : {}), - }; - } -@@ -160,7 +160,7 @@ export default class RNPickerSelect extends PureComponent { - }); - - this.state = { -- items, -+ items: !isEqual(selectedItem, {}) ? items.filter(item => item.value !== null) : items, - selectedItem, - showPicker: false, - animationType: undefined, diff --git a/yarn.lock b/yarn.lock index b0f4f42db..11f437342 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2403,6 +2403,11 @@ dependencies: stacktrace-js "^2.0.0" +"@react-native-picker/picker@^1.8.3": + version "1.16.1" + resolved "https://registry.yarnpkg.com/@react-native-picker/picker/-/picker-1.16.1.tgz#cc5d05b0d651445afa519c67824d8af3e43fa10c" + integrity sha512-sk07ARwL0cMXwkXsqcxyprL/KiEVD0xRFXFqznTnZs1YXqwxEqz6GiGtq2vQlK64CzXDpHX8gw1QQz47abBY1Q== + "@react-navigation/core@^5.15.3": version "5.15.3" resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-5.15.3.tgz#dce7090bf3ea0d302993d742c706825e495b812e" @@ -13723,11 +13728,12 @@ react-native-orientation-locker@1.3.1: resolved "https://registry.yarnpkg.com/react-native-orientation-locker/-/react-native-orientation-locker-1.3.1.tgz#e47cfdd4a7390df6ccdbc748a6eca9e8be953b0d" integrity sha512-BJPe/GvGO8nNdtqQat30CS9H2o+Qt8hv9AMYCxLS5l5k5+BP3FLScU2+GBg2DizDQCOnTtA24o8heI7kwy+rvw== -react-native-picker-select@7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/react-native-picker-select/-/react-native-picker-select-7.0.0.tgz#4808a1177f997e234bb8505849dfffe1a01fedac" - integrity sha512-SO7b7wHfeM07oVTsLhBlT/VDvMXg2aP0Xy5CA+kL7+oV2Bq6nfKTVjpB2+HLVhFik9i/tlq5ROuGdUrfPhl3rg== +react-native-picker-select@^8.0.4: + version "8.0.4" + resolved "https://registry.yarnpkg.com/react-native-picker-select/-/react-native-picker-select-8.0.4.tgz#3f7f1f42df69b06e7d2c10338288332a6c40fd10" + integrity sha512-orBjPIwBkV5oipyVw263YNMI56f6Kj3p/ejabZoCYYNSG3AiLVVhC2RqsxMgDA7IayyURAW+AlV+mDJyVqLBkg== dependencies: + "@react-native-picker/picker" "^1.8.3" lodash.isequal "^4.5.0" react-native-platform-touchable@1.1.1: