Expo alternative to CameraRoll.saveToCameraRoll?

#1

How can i save an image to camera roll in expo?

0 Likes

#2

You can just use CameRoll.saveToCameraRoll. All the stuff that’s part of React Native core is included in Expo.

Docs here: https://facebook.github.io/react-native/docs/cameraroll.html

0 Likes

#3

this demos it pretty well https://snack.expo.io/SJRvlSxvb

3 Likes

#4

Do you know if and how can I save to cameraRoll but in another folder than CDIM?
Something like this plugin for non expo projects: https://github.com/francisco-sanchez-molina/react-native-store-photos-album

Thanks!

0 Likes

#5

Hey @moshfeu,

As far as I’m aware there isn’t a solution to this that doesn’t require detaching, but if there is hopefully someone in the community can chime in!

Cheers,

Adam

0 Likes

#6

:fire:Take a look at our new MediaLibrary API https://docs.expo.io/versions/latest/sdk/media-library#expomedialibraryaddassetstoalbumasyncassets-album-copyassets

3 Likes

#7

My apologies, @moshfeu. Thanks for the save, :bacon:!

1 Like

#8

Thanks! So easy :slight_smile: Thanks for v27 :wink:

1 Like