-
Notifications
You must be signed in to change notification settings - Fork 118
Sketch "clear" does not work #80
Comments
In case anyone bumps into this and want a temporary solution, here is how I did it. First, the Sketch component with ref:
and then, use the code section that @Nehero provided (i.e. https://github.com/expo/expo-pixi/blob/master/lib/components/Sketch.js#L165) with just the part below
That did the trick for me |
@victorcabeceira solution did not work for me. After further investigation, it appears that several features of this module depend on dependencies which are not compatible for the latest expo SDK versions (My app is running with expo SDK 34). Since I only needed the clearing feature and the ability to save the result ( I used
The ExpoPixi.Sketch component gets unmounted for a very brief moment and then remounted.
This solution works for Android both in dev and when testing the APK build. |
Complains that
this.provider.reset()
is not a functionhttps://github.com/expo/expo-pixi/blob/master/lib/components/Sketch.js#L165
I'm guessing it is because the
clear()
method was copied from the signature component wherethis.provider
is being setThe text was updated successfully, but these errors were encountered: