diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-02 16:14:30 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-07-02 16:14:30 -0400 |
commit | f62eaec4f70ffaf1c5bf82a831acff542eec4957 (patch) | |
tree | 956c5fc2f9708be934c0db8d7699cee61d4086de /src/components/camera/GalleryIcon.tsx | |
parent | 80f52fa900817d614680a60f0c35592cf48310b0 (diff) |
Support picking video from gallery
Diffstat (limited to 'src/components/camera/GalleryIcon.tsx')
-rw-r--r-- | src/components/camera/GalleryIcon.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/camera/GalleryIcon.tsx b/src/components/camera/GalleryIcon.tsx index 8d396550..ca2d2559 100644 --- a/src/components/camera/GalleryIcon.tsx +++ b/src/components/camera/GalleryIcon.tsx @@ -1,12 +1,12 @@ import React from 'react'; import {Image, Text, TouchableOpacity, View} from 'react-native'; import {navigateToImagePicker} from '../../utils/camera'; -import {Image as ImageType} from 'react-native-image-crop-picker'; +import {ImageOrVideo} from 'react-native-image-crop-picker'; import {styles} from './styles'; interface GalleryIconProps { mostRecentPhotoUri: string; - callback: (pic: ImageType) => void; + callback: (media: ImageOrVideo) => void; } /* |