cannot read undefined property (useCanvasRef)
Closed this issue · 3 comments
soorajpandey commented
hello @wobsoriano, I am getting an issue after updating the library to the latest version 0.1.6, it was not there in the previous version, I know it is from @shopify/react-native-skia side, but I didn't change anything in the skia library.
wobsoriano commented
Thanks for reporting! Will take a look later
soorajpandey commented
it is fixed now, I created a new folder and installed everything again, copied all the previous files, and it worked. still not sure what was the issue after the update.
soorajpandey commented
hello, I have a question, when I am trying to map by the canvas not working (responding),
{dataPoints && dataPoints.map((item, key) => {
console.log(item.id === showImage.id);
if (item.id === showImage.id) {
<SketchCanvas
strokeColor={snap.strokeColor}
strokeWidth={snap.strokeWidth}
ref={canvasRef.current?.addPoints(item.points)}
containerStyle={styles.container}
/>
}
})}
item.points has array of points
thank you