NSCoder
NSCoder

Reputation: 1668

How to pick videos in imagepicker in expo?

Expo built-in image picker allows to pick images, how can you use it to pick videos.

Upvotes: 2

Views: 4150

Answers (2)

OscarGM10176
OscarGM10176

Reputation: 57

Here is what you need.

let result = ImagePicker.launchImageLibraryAsync({

mediaTypes:'Videos',

});

///all----Images or Videos

Upvotes: 2

Michael Cheng
Michael Cheng

Reputation: 10501

Searching the Github repository, shows two issues for this 1 2 which point to this feature request that is In Progress. They state that it won't be ready until SDK20 which is due for release in August.

If you cannot wait, you can poke around the source code for undocumented options to try and get this working but I wouldn't recommend it since they may be bugs and the API may change in in newer releases. For example, you can check out these files:

Upvotes: 1

Related Questions