Given a view, takeSnapshotAsync will essentially screenshot that view and return an image for you. This is very useful for things like signature pads, where the user draws something and then you want to save an image from it.
Exponent.takeSnapshotAsync(view, options)Snapshots the given view.
view (number|ReactElement) — The ref or reactTag (also known as node handle) for the view to snapshot.
options (object) —
A map of options:
"png" | "jpg" | "jpeg" | "webm"'file' — Return a file uri.
- 'base64' — base64 encoded image.
- 'data-uri' — base64 encoded image with data-uri prefix.An image of the format specified in the options parameter.
© Copyright 2017, Exponent. Created using Gatsby.