-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add hiddenWhenSkeletonIsActive property #339
Conversation
… the skeleton animation starts
Hi @mohn93, thanks for your first contribution 👍 I would like to discuss about that. Checking your approach...I think it could be a good solution...But my first approach was to notify when the skeleton will/did appear/disappear. Then the developers can modify the views as they want. What do you think? |
Hi @Juanpe How your approach will look like can you show me an example, please? |
Yep, there are two ways to implement it. Way 1
Way 2
Do the same for did appear and will/did disappear |
Cool Since I needed this feature in more than one place, I think it would be good if it's just a simple property or anything near this approach. And no harm if you kept the other two ways you laid out, the developer might need to do something unfamiliar or worth the boilerplate. |
mmm...actually, I think you're right, as an open-source project we should provide multiples ways to do something. So yep, we're going to include your approach, although we include later the rest of the approaches. So, I'm going to review the code, because I have some doubts. Also, I think we should include this new property in the README file, to be clear that you can hide views when the skeleton is active, ok? Thanks |
Cool, yeah it needs reviewing, maybe you have some considerations that I didn't take in my implementation, so take your time |
Hi @mohn93, do you know approx when you can update the doc? Thanks |
Thanks for your first contribution 🎉 |
@Juanpe can you release a new version for this change ? |
Hi @ahmedgomaa27, Next version will be released today :) |
version 1.11.0 was published 👍 |
Summary
Add hiddenWhenSkeletonIsActive property which will hide the view when the skeleton animation starts
Requirements (place an
x
in each of the[ ]
)