Commit Graph
8 Commits
Author SHA1 Message Date
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