[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;
|
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;
|
||||||
|
|
Loading…
Reference in New Issue