Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot read undefined property (useCanvasRef) #10

Closed
soorajpandey opened this issue Jul 18, 2022 · 3 comments
Closed

cannot read undefined property (useCanvasRef) #10

soorajpandey opened this issue Jul 18, 2022 · 3 comments

Comments

@soorajpandey
Copy link

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.

thank you.
IMG_780FDE91C366-1

@wobsoriano
Copy link
Owner

Thanks for reporting! Will take a look later

@soorajpandey
Copy link
Author

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
Copy link
Author

soorajpandey commented Jul 19, 2022

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

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

No branches or pull requests

2 participants