chore(release): 2.0.0 [skip ci]
# [2.0.0](https://github.com/react-native-community/react-native-cameraroll/compare/v1.8.1...v2.0.0) (2020-06-16)
### Features
* Added `include` parameter to getPhotos to let users tradeoff performance by omitting metadata ([#178](https://github.com/react-native-community/react-native-cameraroll/issues/178)) ([#200](https://github.com/react-native-community/react-native-cameraroll/issues/200)) ([4da8310
](https://github.com/react-native-community/react-native-cameraroll/commit/4da8310))
### BREAKING CHANGES
* meta data is no longer added as default. This applies to `fileName`, `fileSize` and `location`. If you need this metadata use the new `include` parameter. Adding this metadata will slow down the `getPhotos` function, so consider only retrieving this meta data for smaller sets of images as needed, instead of for all images.
* Created getPhotosFast function, fixed inconsistent getPhotos toDate logic
* Fixed wrong param name, added better typechecking
* Added example, renamed allowEmptyFilenames to skipGettingFilenames
* Removed `after` from getPhotosFast docs
* Redid implementation based on a new `include` param
* Updated API to use include parameter
* Fixed flow checking by converting index.ts to Typescript
* Unformatted README.md
* Unformatted README.md
* Unformatted README.md
* Added .prettierignore and ignored README.md for now
* Made example/index.js not checked by Flow
* Updated README.md to include notes in the outputs too
* Made inclusion of fields consistent, addressed other feedback
* Renamed GetPhotosFastParams back to GetPhotosParams
* Updated documentation to reflect nullable types
* Updated typings and documentation for fromTime, toTime
* Updated to fix `hasNextPage` being incorrectly false in some cases
Co-authored-by: Harry Yu <hy.harry.yu@gmail.com>
This commit is contained in:
parent
4da8310892
commit
f8b2860a74
|
@ -2,7 +2,7 @@
|
|||
"name": "@react-native-community/cameraroll",
|
||||
"author": "Bartol Karuza <bartol.k@gmail.com>",
|
||||
"homepage": "https://github.com/react-native-community/react-native-cameraroll#readme",
|
||||
"version": "1.8.1",
|
||||
"version": "2.0.0",
|
||||
"description": "React Native Camera Roll for iOS & Android",
|
||||
"main": "./js/CameraRoll.js",
|
||||
"types": "./typings/CameraRoll.d.ts",
|
||||
|
|
Loading…
Reference in New Issue