How to set touchable component ?
Kumar2971 opened this issue · comments
How to swap the button color as per password condition?
Hello @Kumar2971
I don't get what you're asking exactly. Your header says something else, your question is not clear.
I don't know what do you mean by per password condition.
You can use these customization options:
https://github.com/WrathChaos/react-native-duo-toggle-switch#configuration---props
Probably what you're looking is activeColor
and `inactiveColor
A button color swap as per password validation how to do that ?
How to disabled onpress event?or set active opacity for that button?
https://github.com/WrathChaos/react-native-duo-toggle-switch/blob/master/lib/DuoToggleSwitch.tsx#L93
as you can see, all the props depend on the TouchableComponent
since TouchableComponent can be any Pressable component. It depends on your business logic.
This does not limited by the library itself