We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ce4a1a commit cdc34aeCopy full SHA for cdc34ae
src/types.ts
@@ -12,7 +12,7 @@ export interface ImageLibraryOptions {
12
export interface CameraOptions extends ImageLibraryOptions {
13
durationLimit?: number;
14
saveToPhotos?: boolean;
15
- cameraType?: string;
+ cameraType?: CameraType;
16
}
17
18
export interface ImagePickerResponse {
@@ -40,6 +40,7 @@ export type PhotoQuality =
40
| 0.8
41
| 0.9
42
| 1;
43
+export type CameraType = 'back' | 'front';
44
export type MediaType = 'photo' | 'video';
45
export type AndroidVideoOptions = 'low' | 'high';
46
export type iOSVideoOptions = 'low' | 'medium' | 'high';
0 commit comments