react-native-skia icon indicating copy to clipboard operation
react-native-skia copied to clipboard

Whenever I use useCanvas the component NEVER gets unmounted.

Open gigadeplex opened this issue 3 years ago • 2 comments

// 💚 useCanvasSize() can safely be used here const {size} = useCanvas();

Safely? Hell no. It literally never unmounts, event when I pop it from the stack somehow it still exists

gigadeplex avatar Jul 19 '22 10:07 gigadeplex

BTW, I couldn't even use the onLayout callback on Canvas, I had to use it on its parent view. Furthermore, I'm using RN 0.69., Skia 0.1.136.

gigadeplex avatar Jul 19 '22 10:07 gigadeplex

Can you provide a code snippet that would help us to reproduce the issue?

wcandillon avatar Jul 19 '22 12:07 wcandillon

@gigadeplex we tried to reproduce the issue but we were unable too. Please reopen this issue if you have an example we can try.

wcandillon avatar Aug 10 '22 06:08 wcandillon