I am writing a signature app and would like to get consistent images to save. Preferably I would get PNG’s with transparent backgrounds and black lines.
I have been trying to use the ExpoPixi.Sketch module. However, I have run into a few problems.
takeSnapshotAsyncAPI in Expo to save the signature.
- This works on iOS and I get a png with a transparent background.
- This does not work on Android though. I just get a transparent png.
takeSnapshotAsyncAPI from the GLView through the ExpoPixi module to save the signature.
- This works on iOS, but not quite the way I want. It returns a jpeg image with a white background and black lines. This is ok, but like I said not ideal.
- This technically works on Android as well, but if the line color is set to black It just returns a black image jpeg.
Maybe I have to open up an issue and ask that the GLView
takeSnapshotAsync API be upgraded to accept the same options as the standard Expo
Here are two images where the text was set to red.