react-native-canvas
A Canvas component for React Native.
Usage
API
Canvas
Canvas#height
Reflects the height of the canvas in pixels
Canvas#width
Reflects the width of the canvas in pixels
Canvas#getContext()
Returns a canvas rendering context. Currently only supports 2d context.
Canvas#toDataURL()
Returns a Promise
that resolves to DataURL.
CanvasRenderingContext2D
Standard CanvasRenderingContext2D. MDN. Only difference is await
should be used to retrieve values from methods.
Image
WebView Image constructor. Unlike in the browsers accepts canvas as first argument. MDN