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

Element resize problem #71

Open
michbil opened this issue Jan 17, 2025 · 1 comment
Open

Element resize problem #71

michbil opened this issue Jan 17, 2025 · 1 comment

Comments

@michbil
Copy link

michbil commented Jan 17, 2025

I've found one visual glitch, which is quite hard to solve in pure JS
Here on the video you can see that when element is resized, there is short blink can be seen. On production build it's happening not all the time, but also pretty much visible. Problem here is that reaction to resize is one frame apart from the initial change size frame.
https://www.youtube.com/shorts/BfsFKySlSQs

Option with animated container positions don't solve this problem too (#64). Modern react does not have componentDidMount, so we can not change position of the component below immediately with animated value.

LegendList with flashlist-autolayout does not have this problem (#67) because native module removes gap automatically.

@jmeistrich
Copy link
Contributor

I've struggled to solve this too. From what I can tell this will only be fixable by a native autolayout solution.

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