1 | import { NativeModules } from 'react-native';
|
2 | const { ExponentImagePicker } = NativeModules;
|
3 | const MEDIA_TYPE_OPTIONS = {
|
4 | All: 'All',
|
5 | Videos: 'Videos',
|
6 | Images: 'Images',
|
7 | };
|
8 | export async function launchImageLibraryAsync(options = {}) {
|
9 | return ExponentImagePicker.launchImageLibraryAsync(options);
|
10 | }
|
11 | export async function launchCameraAsync(options = {}) {
|
12 | return ExponentImagePicker.launchCameraAsync(options);
|
13 | }
|
14 | export const MediaTypeOptions = MEDIA_TYPE_OPTIONS;
|
15 |
|
\ | No newline at end of file |