Back to React Native Vision Camera

Snapshot Capture

docs/content/docs/snapshot-capture.mdx

5.0.11295 B
Original Source

import { Tab, Tabs } from 'fumadocs-ui/components/tabs'

To capture a snapshot of the current Preview View's contents, use takeSnapshot():

ts
const preview = ...
const snapshot = await preview.takeSnapshot()