react-native-photos-framework
Version:
Use Apples Photos Framework with react-native to fetch media from CameraRoll and iCloud
18 lines (17 loc) • 399 B
JavaScript
/**
* Given an array of dependencies - it returns their RNPM config
* if they were valid.
*/
module.exports = function getDependencyConfig(config, deps, root) {
return deps.reduce((acc, name) => {
try {
return acc.concat({
config: config.getDependencyConfig(name, root),
name,
});
} catch (err) {
console.log(err);
return acc;
}
}, []);
};