0.1.4 • Published 11 months ago

@azzapp/react-native-snapshot-view v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@azzapp/react-native-snapshot-view

Snapshot view for react-native

Installation

npm install @azzapp/react-native-snapshot-view

Usage

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 releaseSnapshot to release them, or let the SnapshotRenderer component release the snapshot on unmount.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago