Skip to main content

expo-camera

Version: 55.0.6 A React component that renders a camera preview with support for taking photos, recording videos, scanning barcodes, and detecting faces.

Installation

Usage

API Reference

CameraView Props

'front' | 'back'
default:"back"
Camera direction
'off' | 'on' | 'auto'
default:"off"
Flash mode for photos
number
default:"0"
Zoom level (0 to 1)
'picture' | 'video'
default:"picture"
Camera mode
boolean
Enable torch (flashlight)
object
Configure barcode scanning

Methods

(options?: CameraPictureOptions) => Promise<Photo>
Takes a photo
(options?: CameraRecordingOptions) => Promise<Video>
Starts video recording
() => void
Stops video recording

Hooks

() => [PermissionResponse, () => Promise<PermissionResponse>]
Manages camera permissions
() => [PermissionResponse, () => Promise<PermissionResponse>]
Manages microphone permissions (for video recording)

Examples

Take Photo

Record Video

Barcode Scanner

Platform Support

Resources