Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabled in componentDidUpdate will stop re-render #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chj-damon
Copy link

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.

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.
@shahen94
Copy link
Owner

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

@chj-damon
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants