Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way I can get custom image album name list from iOS? #10666

Closed
BROUDING opened this issue Nov 1, 2016 · 6 comments
Closed

Is there any way I can get custom image album name list from iOS? #10666

BROUDING opened this issue Nov 1, 2016 · 6 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@BROUDING
Copy link

BROUDING commented Nov 1, 2016

CameraRoll.getPhotos(fetchParams) .then((data) => this._appendImages(data, changeGallery), (e) => console.log(e));

I used above code and as a result, in data there's a parameter called 'group_name'.
In Android, I can get all the album names.
In iOS, all the group_name is same as 'All Photos'.

So I can sort albums in Android, but not in iOS.

How can I get custom image album name list...?

p.s. Last time I asked, 'DanielMSchmidt' closed my issue without asnwering;;;
I need a comment from an author!
Thanks a lot.

@hramos
Copy link
Contributor

hramos commented Nov 1, 2016

The issue tracker is meant to be used to track bugs that need to be fixed. "How do I do X?" types of questions are best handled in Stack Overflow, which is a purpose-built Q&A forum. Would you like to post this question to Stack Overflow with the tag #react-native?

As of this writing we have 789 open issues in the repository, so we need to be a bit more proactive about closing issues. I'm afraid I'll have to close this one out for now!

@hramos hramos closed this as completed Nov 1, 2016
@BROUDING
Copy link
Author

BROUDING commented Nov 2, 2016

Okay I understood.
Thanks..

@DylanVann
Copy link
Contributor

It seems like there's no way to do this with RN. We can get a list of images that are in albums:

CameraRoll.getPhotos({
  first: 10,
  groupTypes: 'Album',
})

Which is the first 10 images that are in albums, not the first image in the first 10 albums (which would be much more convenient). But we can't get a list of albums.

Seems like a feature request.

@hramos
Copy link
Contributor

hramos commented Nov 16, 2016

Feel free to post it to Product Pains as a feature request: https://productpains.com/product/react-native/ - it's been helpful when it comes to prioritizing what people work on next.

@BROUDING
Copy link
Author

@DylanVann , @hramos

Gracias gentlemen...
for Android, I fixed CameraRoll as my taste and getting album list pretty well.
But since I strongly think this feature will be used a lot, I'll request on there for potential better work !

Have a good day !

@ghost
Copy link

ghost commented Feb 13, 2018

@DylanVann @BROUDING did you guys find a workaround for this? I managed to get a list of albums using this module https://github.com/shimohq/react-native-albums getAlbumList method but the getImageList isn't implemented in the iOS version. I then tried to use the built-in CameraRoll.getPhotos with groupName set to the previously retrieved album name, but it doesn't seem to match what's expected (no photos in the callback/promise result).

Just leaving this here as that's as far as I dug it for now.

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants