UNPKG

874 BSource Map (JSON)View Raw
1{"version":3,"file":"takeSnapshotAsync.js","sourceRoot":"","sources":["../src/takeSnapshotAsync.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAapD,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,iBAAiB,CAC7C,IAA6C,EAC7C,OAAyB;IAEzB,OAAO,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACnC,CAAC","sourcesContent":["import * as React from 'react';\nimport { captureRef } from 'react-native-view-shot';\n\ntype ReactNativeNodeHandle = number;\n\ntype SnapshotOptions = {\n width?: number;\n height?: number;\n format: 'png' | 'jpg' | 'raw' | 'webm';\n quality: number;\n snapshotContentContainer: boolean;\n result: \"tmpfile\" | \"base64\" | \"data-uri\" | \"zip-base64\";\n};\n\nexport default async function takeSnapshotAsync(\n node: ReactNativeNodeHandle | React.Component,\n options?: SnapshotOptions\n): Promise<string> {\n return captureRef(node, options);\n}\n"]}
\No newline at end of file