AdelRedaa97 / react-native-select-dropdown

react-native-select-dropdown is a highly customized dropdown | select | picker | menu for react native that works for andriod and iOS platforms.
MIT License
320 stars 137 forks source link

The `disabled` property does not actually disable the button #57

Closed Pkcarreno closed 2 years ago

Pkcarreno commented 2 years ago

Adding the disabled property does not have any impact on the button, it continues to work normally, I force pass true and false values and in both cases it does nothing

In addition to this, it would also be useful to be able to define styles for the button and text when it's disabled, something like: disabledButtonStyle and disabledButtonTextStyle, to match the rest of the property names used in the component

or just a parameter to add a color and opacity value when disabled

Thank you very much for this component.

Note: I only tested on android

sami3898 commented 1 year ago

Hey, @Pkcarreno have achieved this functionality for disabling style?

Pkcarreno commented 1 year ago

Hey @sami3898, I created an internal implementation that uses react-native-select-dropdown and what I did was to manipulate the styles manually with inline styles according to the disabled value that I passed to my component.