Snapshot view for react-native
npm install @azzapp/react-native-snapshot-view
import { captureSnapshot, SnapshotRenderer } from "@azzapp/react-native-snapshot-view";
// capture a snapshot of a view
const snapshotID = await captureSnapshot(viewRef.current);
// Display the captured snapshot
<SnapshotRenderer snapshotID={snapshotID} />
⚠️ captured snapshot are kept in memory, either usereleaseSnapshot
to release them, or let theSnapshotRenderer
component release the snapshot on unmount.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library