Skip to content

Commit

Permalink
[FIX] Mime type check crashing the app (#2264)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello authored Jul 8, 2020
1 parent fc84324 commit f70d828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/ShareView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f70d828

Please sign in to comment.