From fa2c93fa2b0a7b171a87870b9ff3a6efabe01ebf Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 8 Jul 2020 17:45:38 -0300 Subject: [PATCH] [FIX] Mime type check crashing the app (#2264) --- app/views/ShareView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/ShareView/index.js b/app/views/ShareView/index.js index a31b962e4..2ec601f95 100644 --- a/app/views/ShareView/index.js +++ b/app/views/ShareView/index.js @@ -123,7 +123,7 @@ class ShareView extends Component { item.error = error; // get video thumbnails - if (item.mime?.match(/video/)) { + if (item.mime?.match?.(/video/)) { try { const { uri } = await VideoThumbnails.getThumbnailAsync(item.path); item.uri = uri;