Commit Graph
15 Commits
Author SHA1 Message Date
Théo Poizat 053dd8cc21 feat(iOS): Include assets originating from an iCloud Shared Album. (#525)
* Include assets originating from an iCloud Shared Album. iOS only.

* Add a switch to test includeSharedAlbums in GetPhotosPerformanceExample
2023-09-08 11:24:24 +02:00
Théo Poizat 07fef8f5e7 feat(iOS): Include subtype in get albums. (#526) 2023-09-01 16:15:16 +02:00
Arjan ZuidemaandJohn Ferlito adb2d24cd8 chore(example): Update react-native to 72.1 (#512)
fix(all): Fixed Native Arch codgen issue

* Updated react-native in  FarbricExample app

---------

Co-authored-by: John Ferlito <johnf@inodes.org>
2023-07-04 09:55:08 +02:00
Théo Poizat 1f6499be0a feat(iOS): Add subTypes field (#495)
Allow to know PHAssetMediaSubtype on iOS.
So for example if a node is a LivePhoto or a Panorama.
2023-05-31 09:33:11 +02:00
Théo Poizat a419ccce27 feat(all): Add modificationTimestamp field (#493)
* feat(android): Rename modified node field to more explicit name

* feat(ios): Return modificationDate in ios

* docs: Add modification date in ts, docs and examples
2023-05-22 15:03:05 +02:00
Santhosh Vaiyapuri 905dd24d70 fix: make useCameraRoll functions to be shallow equal (#492) 2023-05-22 15:01:21 +02:00
Wojciech Lewicki 2b595e5266 feat: Add support for new architecture (Fabric) (#460) 2023-03-09 14:47:47 +01:00
b_d f082b3b5a3 fix(all): add filepath to type definition (#452) 2023-01-23 15:05:41 +01:00
Mats01-ferandMats01 872105f2a8 fix(android): include orientation option (#454)
* add orientation to data return about image

* reverse witdh-height on andorid if orientation indicates rotation

* update readme

* return whitespace to original state

Co-authored-by: Mats01 <“matej.butkovic@gmail.com”>
2023-01-23 15:04:47 +01:00
Tolgahan Çelik d515b12681 feat(all): file extension support (for CameraRoll.getPhotos ) (#440)
* Ios added extension support.

* Android added extesion support.

* Android mimetype process moved to utils.

* Typescript added types.

* Readme added types.
2022-12-08 09:22:33 +01:00
guilherme-ferraz1andGuilherme Ferraz 0d395f5d67 fix(all): add lowercase to auto type (#444)
Co-authored-by: Guilherme Ferraz <gferraz@visiblemagic.com>
2022-12-07 08:30:15 +01:00
David Narbutovich b9e52a1b36 feat(all): Add useCameraRoll() hook (#354)
* Add `useCameraRoll()` hook

* Bump React Native patch ver. to fix Android build
2022-11-11 08:32:28 +01:00
olubitsky cd6d3fca0a fix(all): call getParamsWithDefaults static method (#420) 2022-09-30 14:47:04 +02:00
Sparsha SahaandSparsha Saha 6962577773 chore(test): added unit testing for iOS permissions (#418)
Co-authored-by: Sparsha Saha <sparshasaha@Sparshas-MacBook-Pro.local>
2022-08-26 10:24:24 +02:00
Bartol Karuzaandidrissakhi c230dd0074 feat(all): fix various issues and big maintenance update of the library (#404) (#411) BREAKING
Fixes
fix(ci): fixed android release build as a CI test step

fix(android): Fix MediaStore issues and support scopped storage #322 #244

fix(android): Fix saveImageToCameraRoll #248 #254

fix(android): remove JCenter #340 #401

fix(ios): Fix performance issues #276

fix(ios): add method to get file Path from internal PH ID #135

fix(react-native): Bump used dependencies #393 ...

Fixes #322
Fixes #244
Fixes #248
Fixes #254
Fixes #340
Fixes #401
Fixes #276
Fixes #135
Fixes #393

new Features

feat(ios): now it's possible to listen to library selection changes
`useEffect(() => {
let subscription: EmitterSubscription;
if (isAboveIOS14) {
subscription = cameraRollEventEmitter.addListener('onLibrarySelectionChange', (_event) => {
getUnloadedPictures();
});
}

return () => {
if (isAboveIOS14 && subscription) {
subscription.remove();
}
};`

feat(ios): possibility to open native modal to update selection when authorization is limited
iosRefreshGallerySelection()
feat(ios): Convert HEIC images on demand to upload to server
BREAKING CHANGE: root import changed!
```
import { CameraRoll } from @react-native-community/cameraroll
instead of
import CameraRoll from @react-native-community/cameraroll
```

Co-authored-by: idrissakhi <85105624+idrissakhi@users.noreply.github.com>
2022-08-23 08:13:10 +00:00