I would like the user to select an Album and then display the photos of it in react-native. There is the CameraRoll and it has the ability to filter by groupName, but I did not find a way of how to retrieve these groupNames. Does anybody know how to do this, or do I need to write a native plugin?
Asked
Active
Viewed 3,423 times
4 Answers
1
well, at least you can select a lot of items and group...
import R from 'ramda';
import { CameraRoll } from 'react-native';
let groupNames;
CameraRoll.getPhotos({
first:20000
}).then(
(result) => {
const groupNamesAr = R.map(
(item) => {
return item.node.group_name;
}
)(result.edges)
groupNames = R.countBy((i)=>i)(groupNamesAr);
}
)

Bruno Reis
- 326
- 2
- 7
0
Use this https://github.com/marcshilling/react-native-image-picker it will let you select an image from any album.

Computer's Guy
- 5,122
- 8
- 54
- 74