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

Flickering with LayoutAnimation? #56

Closed
xmflsct opened this issue Dec 26, 2020 · 2 comments
Closed

Flickering with LayoutAnimation? #56

xmflsct opened this issue Dec 26, 2020 · 2 comments

Comments

@xmflsct
Copy link

xmflsct commented Dec 26, 2020

So I am using this library on a page. And a button on this page triggers a LayoutAnimation when tapped. The button's animation is fine, but when LayoutAnimation is triggered, all the components wrapped by this library flickers. Is there a reason why?

@tomzaku
Copy link
Owner

tomzaku commented Dec 27, 2020

Can u send me a demo code?

@xmflsct
Copy link
Author

xmflsct commented Dec 27, 2020

I figure out now. Because of using shimmer placeholder, now my component renders before the remote data get fetched. And my data is passed through as a props which shimmer placeholder can check when to hide. In this case, props changes as it is a rerender, and LayoutAnimation makes rerender visible.

@xmflsct xmflsct closed this as completed Dec 27, 2020
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

No branches or pull requests

2 participants