NativePreviewView

const NativePreviewView: ReactNativeView<PreviewViewProps, PreviewViewMethods>

The <NativePreviewView /> component.

The higher-level Camera component renders this component.

See

Example

function App() {
  const previewView = useRef<PreviewView>(null)
  const previewOutput = usePreviewOutput()

  return (
    <NativePreviewView
      style={StyleSheet.absoluteFill}
      previewOutput={previewOutput}
      hybridRef={callback((r) => {
        previewView.current = r
      })}
    />
  )
}