Skip to content

Commit cdc34ae

Browse files
authored
fix(types): 🐛 add camera type (react-native-image-picker#1674)
1 parent 9ce4a1a commit cdc34ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface ImageLibraryOptions {
1212
export interface CameraOptions extends ImageLibraryOptions {
1313
durationLimit?: number;
1414
saveToPhotos?: boolean;
15-
cameraType?: string;
15+
cameraType?: CameraType;
1616
}
1717

1818
export interface ImagePickerResponse {
@@ -40,6 +40,7 @@ export type PhotoQuality =
4040
| 0.8
4141
| 0.9
4242
| 1;
43+
export type CameraType = 'back' | 'front';
4344
export type MediaType = 'photo' | 'video';
4445
export type AndroidVideoOptions = 'low' | 'high';
4546
export type iOSVideoOptions = 'low' | 'medium' | 'high';

0 commit comments

Comments
 (0)