[FIX] Mime type check crashing the app (#2264)

This commit is contained in:
Diego Mello 2020-07-08 17:45:38 -03:00
parent 118b1352c4
commit fa2c93fa2b
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class ShareView extends Component {
item.error = error; item.error = error;
// get video thumbnails // get video thumbnails
if (item.mime?.match(/video/)) { if (item.mime?.match?.(/video/)) {
try { try {
const { uri } = await VideoThumbnails.getThumbnailAsync(item.path); const { uri } = await VideoThumbnails.getThumbnailAsync(item.path);
item.uri = uri; item.uri = uri;