PDFViewer
Renders a PDF document from a remote or local URI by delegating to react-native-pdf, with a missing-peer notice shown when that peer is absent.
PDFViewer displays a PDF document for a given source. It is a gated optional peer that delegates rendering to react-native-pdf, normalising a string URI into the source shape that peer expects. When the peer is not installed it renders a labelled MissingPeer notice instead.
Required peer: react-native-pdf. Install with pnpm add react-native-pdf.
Import
import { PDFViewer } from '@mindees/ui';
Usage
<PDFViewer source={{ uri: 'https://example.com/report.pdf' }} />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
source | { uri: string } | string | — | Remote or local URI of the PDF document. |
Any additional props are forwarded to the underlying react-native-pdf component.
Accessibility
Document navigation and labelling come from react-native-pdf. When the peer is missing, the rendered MissingPeer fallback uses accessibilityRole="alert" and names the required package and install command.
AudioPlayer
Minimal play and pause control for an audio clip, loading and releasing an expo-av sound and showing a missing-peer notice when expo-av is absent.
QRScanner
Live camera view that detects QR codes and reports each scan through a strongly typed callback, built on expo-camera with a missing-peer fallback.