Closed Pkcarreno closed 2 years ago
Hey, @Pkcarreno have achieved this functionality for disabling style?
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.
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 nothingIn 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
anddisabledButtonTextStyle
, to match the rest of the property names used in the componentor 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