about summary refs log tree commit diff
path: root/src/lib/media/picker.web.tsx
blob: 233600583bb18079adf22c3f4990baa1cefd7d13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import {type OpenCropperOptions} from 'expo-image-crop-tool'

import {type PickerImage} from './picker.shared'
import {type CameraOpts} from './types'

export {openPicker, openUnifiedPicker} from './picker.shared'

export async function openCamera(_opts: CameraOpts): Promise<PickerImage> {
  throw new Error('openCamera is not supported on web')
}

export async function openCropper(
  _opts: OpenCropperOptions,
): Promise<PickerImage> {
  throw new Error(
    'openCropper is not supported on web. Use EditImageDialog instead.',
  )
}