Pick image from user device

Hello,

I want my users to be able to pick and upload an avatar.
Is there any extension that let the user pick an image from the camera or the gallery from his phone?

I’ve been looking but couldn’t find one at the moment.

Thanks for your help!

Not sure if this one still works for camera, but…

1 Like

We do not have a cross-platform extension for bringing up a file dialog. There is def-diags which allows you to bring up an Open or Save dialog on desktop: https://github.com/andsve/def-diags

There is also, as @selimanac pointed out the camera extension which allows you to take a picture with the camera.

Finally, which isn’t really the same thing, but something that you probably can use as a base for your own extension is the Share extension:

It handles sharing from the app to the OS. In your case you want the other way around and getting a resource from the OS into your app.

2 Likes

So we still not having a way to pick image from gallery?

I wish we have Kotlin & Swift supported for native extensions so I can port this library to Defold easily expo/packages/expo-image-picker at main · expo/expo (github.com)