Commit Graph

33 Commits

Author SHA1 Message Date
Jesse Katsumata 73f4cadbdf
docs: fix circle ci badge url (#245) 2021-03-21 12:57:28 +09:00
Soumitra Mishra 54ba2e9bac
chore: updated readme for scoped storage changes (#280)
to make this project work on android 10 we will need to add android:requestLegacyExternalStorage="true" on application tag.

added that to readme so that people don't waste hours searching for it.
2021-01-27 02:15:49 +00:00
zxcpoiu 98bfdbf49c
chore: readme usage use recommended `save()` (#231) 2020-09-29 14:55:10 +03:00
Harry Yu ec33d328af
feat: Added imageSize and playableDuration to `include` param, deletes isStored (#187)
BREAKING CHANGE: imageSize and playableDuration are no longer included by default to improve performance
2020-06-23 08:45:20 +03:00
kiran JD d21584ae4e
chore: Adds docs for Android permissions (#202)
* Adds docs for Android permissions

* Corrected typo's and imporovements

* Include CLI as a case explicitly

* Remove unexpected pasted lines
2020-06-23 08:30:18 +03:00
Bartol Karuza 4da8310892
feat: Added `include` parameter to getPhotos to let users tradeoff performance by omitting metadata (#178) (#200)
BREAKING CHANGE: 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>
2020-06-16 13:20:51 +03:00
Bartol Karuza e65e1f208b
fix: Revert "feat: Added `include` parameter to getPhotos to let users tradeoff performance by omitting metadata (#178)" (#199) 2020-06-16 13:05:12 +03:00
Harry Yu e54a6afa8b
feat: Added `include` parameter to getPhotos to let users tradeoff performance by omitting metadata (#178)
* 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
2020-06-16 12:07:25 +03:00
Antonio Gallo b5352cb8be
fix: Use DCIM folder when album is not provided on Android. (#185)
fixes #141

Co-authored-by: Antonio Gallo <antgallo@amazon.com>
2020-05-26 13:16:54 +03:00
Bartol Karuza aa47532fdb
fix: deprecate saveToCameraRoll (#183)
fixes #182
2020-05-21 10:52:27 +03:00
Antonio Gallo e7cf8665d4
feat: Added fileSize for getPhotos API (#180)
Co-authored-by: Antonio Gallo <antgallo@amazon.com>
2020-05-20 20:35:59 +03:00
Evan Bacon b0667e2b6b
Recommend npx pod-install for setup instructions
# Summary

We've been recommending devs use `npx pod-install` since it will attempt to install CocoaPods CLI if it's not available on the computer (cite [React Navigation setup guide](https://reactnavigation.org/docs/getting-started/#installing-dependencies-into-a-bare-react-native-project)). This has proved very useful for Expo users who are now migrating to the bare workflow and want to use community packages in their projects.

## Checklist

- [x] I have tested this on a device and a simulator
- [x] I added the documentation in `README.md`
2020-05-14 12:27:45 -07:00
Tuan Luong fc1855e001
feat: get album list (#139) 2020-02-08 11:17:56 +08:00
Tuan Luong 75b4208474
feat: Support filter media items between dates (#140)
* Update RNCCameraRollManager.m

* Update CameraRollModule.java

* Update README.md

* Update RNCCameraRollManager.m

* Update CameraRoll.d.ts

* Update RNCCameraRollManager.h

* Update CameraRollModule.java

* Update RNCCameraRollManager.m

* update code
2020-02-05 17:20:54 +08:00
Jesse Katsumata 829d5a6b67 chore: add lean core badge to readme (#122) 2020-01-20 16:54:05 +08:00
Kevin Brown 7850dd538f feat(lib): Moved deletePhotos to use new PHAsset API and added an implementation for Android (#69)
* deletePhotos works in iOS

* Deletion works on Android.

* Removing unnecessary commented out code.

* Updated typescript typings.

* Made readme more accurate based on being able to retrieve failure from the iOS API.

* Let formatter run, also now rejecting the promise when there's any error on deletion on Android.
2019-11-07 14:13:24 +01:00
77xi 384103860f chore(docs): Update README.md for autolink (#85) 2019-11-07 14:11:53 +01:00
Bartol Karuza a1c3acff9a chore(docs): update the line about what save actually does differently from saveToCameraRoll 2019-08-14 22:11:55 +02:00
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
Edward Smith f420cefa77 feat(lib): Filename added to the image properties iOS and Android (#61)
* fix(lib): mirror fix PHAsset video upload

458e70c79d (diff-3a2b7a4c4ebe5ac224b5a32896c032fb)

* Include the filename in both iOS and Android

* Add filename to docs
2019-06-13 08:24:46 +02:00
Serge K Lebedev 44e013a5b3 chore(docs): Fix anchors in README.md (#60) 2019-06-13 08:18:48 +02:00
Bartol Karuza 58127c5945 chore(docs): fix badge svg [skip ci] 2019-05-14 13:59:49 +02:00
Bartol Karuza ae52098925
Merge pull request #24 from scarlac/bugfix-18-default-to-all
Default groupTypes to "All"
2019-04-14 10:52:57 +02:00
Seph Soliman cebf6f39f0 Default groupTypes to "All". Fixes #18 2019-04-06 11:04:16 -07:00
Bartol Karuza 132af3166d
Merge pull request #17 from skim6281/master
update manual android installation guide
2019-04-02 11:40:45 +02:00
Vishwesh Jainkuniya 8bcdbf6261
readme: Fix links. 2019-03-30 23:05:55 +05:30
Sam Kim b878b4a5ef update manual android installation guide 2019-03-25 13:21:57 -04:00
Bartol Karuza ec664ac294 chore(doc) add android permissions section 2019-03-03 21:23:25 +08:00
Bartol Karuza 0c453b6118 general cleanup
Added typescript binding
Fixed flow type issues
renamed NativeModule to RNCCameraRoll
Added basic jest tests
prettier/lint issues fixed
2019-03-03 14:39:57 +08:00
Bartol Karuza 4777d05546 Make lib JS+native code reachable from iOS example app 2019-02-24 20:47:44 +08:00
Bartol Karuza 8276c55f28 doc to readme for usage 2019-02-24 13:48:06 +08:00
Bartol Karuza c16a74093f renaming react-native-cameraroll > @react-native-community/camerroll 2019-02-24 12:59:58 +08:00
Bartol Karuza 1f3f111bca create-react-native-library and react-native init of example app
# Conflicts:
#	README.md
2019-02-24 12:13:49 +08:00