SimonErm dc00a4f115 feat(lib): save photos or videos to an album
* add option to specify album in saveToCameraRoll and move the optional type param to options

* check platform before setting default value for group types to prevent exception

* adjust typings

* update invariant message

* format code

* extract new implementation to function to avoid breaking change

* format code

* add missing spaces

* fix(lib): add accidentally removed savedphotos back to the enum to prevent crash

* chore(lib): formatting

* chore(lib): add doc for the new save method
2019-08-14 21:00:20 +02:00

48 lines
639 B
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`CameraRoll Should call deletePhotos 1`] = `
Array [
Array [
Array [
"a uri",
],
],
]
`;
exports[`CameraRoll Should call getPhotos 1`] = `
Array [
Array [
Object {
"assetType": "All",
"first": 0,
"groupTypes": "All",
},
],
]
`;
exports[`CameraRoll Should call save 1`] = `
Array [
Array [
"a tag",
Object {
"album": "",
"type": "photo",
},
],
]
`;
exports[`CameraRoll Should call saveToCameraRoll 1`] = `
Array [
Array [
"a tag",
Object {
"album": "",
"type": "photo",
},
],
]
`;