react-native-switch icon indicating copy to clipboard operation
react-native-switch copied to clipboard

disabled in componentDidUpdate will stop re-render

Open chj-damon opened this issue 4 years ago • 2 comments

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.

chj-damon avatar Apr 10 '20 08:04 chj-damon

Yes - If Switch is disabled - you can't change it's value, is this the issue ?

shahen94 avatar Jul 28 '20 12:07 shahen94

@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.

chj-damon avatar Jul 28 '20 14:07 chj-damon