react-native-skia
react-native-skia copied to clipboard
`Canvas ref is not set` on fast refresh
Hi! :)
As soon as I save a code file containing a Skia canvas - and the app performs a live reload
of the code - I do get the following error on my simulator;
![](https://user-images.githubusercontent.com/48212886/181770314-d33a296b-7260-45d7-bf19-49627519e0be.png)
This never shows on a clean startup of the app or at full reload.
Neither does it show on-save of a file that does not contain a Skia Canvas.
Only when performing live reload
(fast refresh, hot reload... I do mix up those terms occasionally).
I don't use ref
s for any of my Skia canvasses.
For me this error shows on 0.1.130, as well as on 0.1.137. Do you have an idea what this error is about?
Thanks, @laurens-lamberts - we'll have to look into this when vacation is over (next week!)
having this issue too. I am using expo sdk 46. Not sure if that is helpful
Maybe worth mentioning. It only happens on ios simulator. on device, it only shows a white screen
We think that this is fixed in newer versions of Skia. @laurens-lamberts can you confirm?
Hi guys,
I'm currently on a holiday and will be for the rest of November. Unfortunately I am not able to verify this at the moment.
All the best, Laurens
Closing it since it seems to be fixed. @laurens-lamberts we are releasing UI rendering today, I think it's gonna be big for some of your use-cases
Hi @wcandillon, I just installed the latest version into our app, and it all looks well on both platforms. :) We will test it thoroughly, and hopefully put it into production soon. Thanks for all the great work!