007c21fa8e
Co-authored-by: Claude <noreply@anthropic.com>
21 lines
579 B
TypeScript
21 lines
579 B
TypeScript
import {type ImagePickerOptions} from 'expo-image-picker'
|
|
import {type OpenCropperOptions} from '@bsky.app/expo-image-crop-tool'
|
|
|
|
import {type PickerImage} from './picker.shared'
|
|
|
|
export {openPicker, openUnifiedPicker} from './picker.shared'
|
|
|
|
export async function openCamera(
|
|
_opts: ImagePickerOptions,
|
|
): 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.',
|
|
)
|
|
}
|