react-native-image-picker icon indicating copy to clipboard operation
react-native-image-picker copied to clipboard

[🌟] Support `launchCamera` with mediaType `mixed` on iOS

Open dylanpyle opened this issue 4 years ago • 7 comments

Description

iOS has a native UI for capturing any type of camera media in one place - e.g this is the interface that apps like iMessage open when selecting the image capture option. It looks like this:

Screenshot:

IMG_78DCFA04F55B-1

However, react-native-image-picker only supports photo or video options to launchCamera, which limit the UI to only one media type. This looks like this:

Screenshot:

IMG_65BAF03FE32F-1

It would be great to support the full "any media type" UI here. It looks like this was discussed and addressed for launchImageLibrary in https://github.com/react-native-image-picker/react-native-image-picker/issues/1527, but not for launchCamera

Proposed Solution

launchCamera({ mediaType: "mixed" }) should open the mixed media capture UI. Currently, calling this function is equivalent to passing mediaType: "photo"

Test Solution

See screenshots above

dylanpyle avatar Sep 14 '21 16:09 dylanpyle

+1

hungdev avatar Nov 05 '21 04:11 hungdev

DO we have support now for launchCamera({ mediaType: "mixed" }) ?

premhdw avatar Dec 08 '21 10:12 premhdw

image @premhdw

hungdev avatar Dec 08 '21 10:12 hungdev

+1

hemantgogia09 avatar Jan 20 '22 12:01 hemantgogia09

+1 Any updates on this? It will be nice to launch the camera and be able to switch from photo to video...

liben96 avatar Jan 20 '22 12:01 liben96

Any updates?

saif-o99 avatar Apr 24 '22 12:04 saif-o99

+1 This should be an obvious feature to implement after all this time

abdoutech19 avatar Sep 14 '22 09:09 abdoutech19

+1

VaibhavValere avatar Oct 04 '22 07:10 VaibhavValere

any updates? I need this feature in my current app

abdoerrahiem avatar Oct 26 '22 07:10 abdoerrahiem

This is great but the ideal format should be this, which is the one that is used in Notes for example:

Screenshot sample

Screenshot

lclarkg18 avatar Mar 02 '23 12:03 lclarkg18

+1

gurbela avatar Apr 20 '23 17:04 gurbela