[FIX] Mime type check crashing the app (#2264)
This commit is contained in:
parent
fc8432488e
commit
f70d8285c9
|
@ -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