Commit Graph

21 Commits

Author SHA1 Message Date
Bartol Karuza 75e325dcfe
fix(lib): typo in PHFetchOptions (#78) 2019-08-14 22:01:26 +02:00
maxaggedon c958493441 fix(lib): Convert PHAsset to JPEG for uploading 2019-08-14 21:05:04 +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
Kevin Brown 0d5a2dadb3 fix(lib): Remove unrecognised UTF8 tag from xcworkspace file 2019-08-14 19:15:36 +02:00
Jason Waldrip b1ceb75340 fixes #42, again (#66) 2019-06-26 10:38:30 +02:00
Bartol Karuza a2d39f0971
fix(lib): move to local variable instead of relying on the string constant from RN core (#63) 2019-06-18 17:32:38 +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
Bartol Karuza 829c7bd65a
fix(lib): mirror fix PHAsset video upload (#58)
458e70c79d (diff-3a2b7a4c4ebe5ac224b5a32896c032fb)
2019-06-13 08:19:37 +02:00
Seph Soliman f5973f8ebe Fix #45 ordering of photos when groupTypes is All (#46)
* Fix #45 ordering of photos when groupTypes is All

* Fix backwards compatible album name for all photos
2019-05-07 21:44:02 +02:00
Abdullah M 4d879e4cb1
Add check to prevent CFRelease(NULL) crash for mimeType 2019-04-18 10:19:31 +08:00
José Ignacio Guerrero VInueza c66cc4fb49 [FIX][iOS] All mediaTypes return order
This fixes the wrong return order when you fetch photos/videos (all)
2019-04-04 12:12:00 -05:00
全贺菁 953b3f083e fix no homepage in Podfile 2019-03-13 19:07:24 +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 bc557cf169 Sync @joshuagross RCTCameraRollManager: fix "all" photos filter
Summary: Currently, trying to fetch "all" photos will loop and never complete. Now it appears to produce the expected results (acting like the "All Photos" smart library in Photos) and doesn't loop. Confirmed console log results, showing no loops: P60994983

Reviewed By: PeteTheHeat

Differential Revision: D14221545

fbshipit-source-id: 31381b1ba2c673fd210cb95f3b7d0f8ffc23ec3f
2019-03-02 15:54:39 +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 b00c05bb81 fix iOS library file reference 2019-02-24 13:48:37 +08:00
Bartol Karuza 5a76ff4d5f in file renames 2019-02-24 12:29:24 +08:00
Bartol Karuza 43b68a8335 renamed migrated files 2019-02-24 12:25:02 +08:00
Bartol Karuza abf3ecd110 move migrated files to right folder 2019-02-24 12:21:54 +08:00
Bartol Karuza 1515c69c43 remove generated files from create-react-native-library to be overwritten 2019-02-24 12:20:25 +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