UNPKG

react-native-trimmer

Version:

A Trimmer component that renders in iOS and Android and built entirely in React Native.

8 lines (7 loc) 422 B
import { CaptureOptions } from 'react-native-view-shot'; /** * Taking a snapshot of DOM is not part of native browser behavior. * This is a hack to best emulate mobile functionality. * This implementation is based on https://github.com/pbakaus/domvas by Paul Bakaus http://paulbakaus.com/ */ export default function captureRef(component: Element, options?: CaptureOptions): Promise<string | Uint8ClampedArray | Blob>;