[FIX] Mime type check crashing the app (#2264)
This commit is contained in:
parent
118b1352c4
commit
fa2c93fa2b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue