@azzapp/react-native-snapshot-view
v0.2.0
Published
Snapshot view for react-native
Downloads
198
Readme
@azzapp/react-native-snapshot-view
Snapshot view for react-native
Installation
npm install @azzapp/react-native-snapshot-viewUsage
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} />:warning: captured snapshot are kept in memory, either use
releaseSnapshotto release them, or let theSnapshotRenderercomponent release the snapshot on unmount.
Contributing
License
MIT
Made with create-react-native-library
