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

borderRadius is not animated (and it's jarring) in some circumstances #29

Open
dcorbin opened this issue Dec 14, 2023 · 0 comments
Open

Comments

@dcorbin
Copy link

dcorbin commented Dec 14, 2023

I'm using borderRadius to make circular holes. However, when the diameter of the circle is reduced, it's quite jarring even when animated. I believe the border radius not animated.

  1. Make large circular hole.
  2. Replace it with a smaller circular hole and animate the change.

The visual jumps from a large circle to a large square with small rounded corners.

Note: this only happens when making the circle smaller. Not when making it larger. This suggests that my immediate problem could be solved by choosing when to update borderRadius bases on the whether it's increasing or decreasing, but I can image other edge cases where this might not be as good as proper animation.

Example: https://github.com/dcorbin/RNHoleViewBug/tree/borderRadius_bug

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

1 participant