react-native-walkthrough-tooltip icon indicating copy to clipboard operation
react-native-walkthrough-tooltip copied to clipboard

fix: ui bounce in short time

Open CodeMak1r-zy opened this issue 11 months ago • 1 comments
trafficstars

CodeMak1r-zy avatar Dec 13 '24 04:12 CodeMak1r-zy

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.

CodeMak1r-zy avatar Dec 13 '24 04:12 CodeMak1r-zy