Functions & Hooks
loadImage
function loadImage(source: string | number, signal?: AbortSignal): Promise<TgfxImage>;Load an image source into a native handle, outside React.
Same sources as useImageState, .svg included - a require()d
asset, a path or URI, base64, or an SVG document as markup. The caller owns
the handle and must dispose() it; the hooks do that for you.
Parameters
source
string | number
signal?
AbortSignal
Returns
Promise<TgfxImage>