From a6e846ab75bb8ad4f2712a771689a5540a7e753a Mon Sep 17 00:00:00 2001 From: Lee Brindley Date: Tue, 12 Sep 2017 00:07:56 +0100 Subject: [PATCH] Added video docs (#441) Added additional example to the code snippets provided, showing how to select videos with the ImagePicker. Also documented the behaviour whereby having the prop 'cropping' set to true results in no videos being shown on Android. I have stated that this issue is known to have happened, rather than stating that it happens all the time, due to the relative poor test coverage across the broad spectrum of Android devices available. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 024b16a..d53db30 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,18 @@ ImagePicker.openPicker({ }); ``` +Select video only from gallery +```javascript +ImagePicker.openPicker({ + mediaType: "video", +}).then((video) => { + console.log(video); +}); +``` + +**Android: The prop 'cropping' has been known to cause videos not to be display in the gallery on Android. Please do not set cropping to true when selecting videos.** + + ### Select from camera ```javascript ImagePicker.openCamera({