Skip to content

Commit 372a6aa

Browse files
committed
Move disabledStyle from the container View to the TouchableOpacity.
1 parent e65fad9 commit 372a6aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Picker.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,9 @@ function Picker({
741741
zIndex: _zIndex
742742
},
743743
...[style].flat(),
744+
...[_disabledStyle].flat(),
744745
pickerNoBorderRadius
745-
]), [rtl, style, pickerNoBorderRadius, _zIndex, THEME]);
746+
]), [rtl, style, _disabledStyle, pickerNoBorderRadius, _zIndex, THEME]);
746747

747748
/**
748749
* The placeholder style.
@@ -818,9 +819,8 @@ function Picker({
818819
const _containerStyle = useMemo(() => ([
819820
THEME.container,
820821
zIndexContainer,
821-
...[containerStyle].flat(),
822-
...[_disabledStyle].flat()
823-
]), [zIndexContainer, containerStyle, disabled, _disabledStyle, THEME]);
822+
...[containerStyle].flat()
823+
]), [zIndexContainer, containerStyle, THEME]);
824824

825825
/**
826826
* The arrow icon container style.

0 commit comments

Comments
 (0)