Skip to content

Conversation

@CodeMak1r-zy
Copy link

No description provided.

@CodeMak1r-zy
Copy link
Author

CodeMak1r-zy commented Dec 13, 2024

const { width, height } = e.nativeEvent.layout;

Some times, I get too many different value in e.nativeEvent.layout.width, such as 259.7402648925781 or 260.0865783691406, but I didn't do anything at the time.

The component keeps repeatedly re-rendering in a very short amount of time.

I think it should be fixed with Math.round.

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.

1 participant