mirror of
https://github.com/status-im/react-native-cameraroll.git
synced 2025-02-22 22:48:09 +00:00
* 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
48 lines
639 B
Plaintext
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",
|
|
},
|
|
],
|
|
]
|
|
`;
|