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

This commit is contained in:
Diego Mello 2020-07-08 17:45:38 -03:00 committed by GitHub
parent fc8432488e
commit f70d8285c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;