From 372a6aa8ae2ad6cf29ffc2b1fa8d29cff1c17049 Mon Sep 17 00:00:00 2001 From: Hossein Zare Date: Fri, 6 May 2022 16:55:32 +0430 Subject: [PATCH 1/2] Move disabledStyle from the container View to the TouchableOpacity. --- src/components/Picker.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Picker.js b/src/components/Picker.js index e3266bb..9bbacc7 100644 --- a/src/components/Picker.js +++ b/src/components/Picker.js @@ -741,8 +741,9 @@ function Picker({ zIndex: _zIndex }, ...[style].flat(), + ...[_disabledStyle].flat(), pickerNoBorderRadius - ]), [rtl, style, pickerNoBorderRadius, _zIndex, THEME]); + ]), [rtl, style, _disabledStyle, pickerNoBorderRadius, _zIndex, THEME]); /** * The placeholder style. @@ -818,9 +819,8 @@ function Picker({ const _containerStyle = useMemo(() => ([ THEME.container, zIndexContainer, - ...[containerStyle].flat(), - ...[_disabledStyle].flat() - ]), [zIndexContainer, containerStyle, disabled, _disabledStyle, THEME]); + ...[containerStyle].flat() + ]), [zIndexContainer, containerStyle, THEME]); /** * The arrow icon container style. From a6b2e7fa46d14a1874e4605463f935a969e480cc Mon Sep 17 00:00:00 2001 From: Hossein Zare Date: Fri, 6 May 2022 16:55:50 +0430 Subject: [PATCH 2/2] Update version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 09a8c45..f82181d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-dropdown-picker", - "version": "5.4.1", + "version": "5.4.2", "description": "A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.", "keywords": [ "picker",