react-native-switch
react-native-switch copied to clipboard
disabled in componentDidUpdate will stop re-render
I'm using Switch
in some detail screen, so I don't want user to enable it so I disabled it. But I found out that Switch
will remain false. I remove disabled
property then it works fine. So I think that's the reason.
Yes - If Switch is disabled - you can't change it's value, is this the issue ?
@shahen94 I mean it should be true if I set value is true. But actually it remains false even though the value is true, no matter I disable it or not.