UNPKG

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