107 Commits

Author SHA1 Message Date
Artur Eshenbrener
e0f10f3dda Fix xCode warnings about main thread execution (#1146)
This kind of warnings also presents in output console if Main Thread Checker is active
2019-10-16 20:57:59 +02:00
Artur Eshenbrener
eb57f75cd7 Fix crash after video recording in ios13 & xcode11 (#1145)
* Fix crash after video recording in ios13 & xcode11

UI-related code should run in main thread, as exception says:

`Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'threading violation: expected the main thread'`

* Typo fix
2019-10-16 18:51:54 +02:00
Filipe Merker
d48b76072a Fix deprecated RCTImageLoader.h import (#1142) 2019-10-11 22:34:56 +02:00
cr1s3c
baf60a6164 Removed isMovingToParentViewController so scroll to bottom works (#1137) 2019-10-10 16:00:42 +02:00
cr1s3c
d935cc6fee Added iOS 13 DarkMode for picker (#1129) 2019-10-03 16:30:21 +02:00
Ivan Pusic
bc72e5b366
Revert "Adds a sortOrder flag to sort by creation date on iOS (#1090)"
This reverts commit 33fd5265e065006f1e5228d5e28ad575182f1310.
2019-09-11 10:43:08 +02:00
Miguel
33fd5265e0 Adds a sortOrder flag to sort by creation date on iOS (#1090)
* Adds a sortOrder flag to sort by creation date on iOS

* Removes extraneous sortOrder access
2019-08-01 10:17:08 +02:00
paul-hart
cc8aa64f47 fixed bug with iOS cancel button (#1000) 2019-05-16 09:49:52 +02:00
Zhuoli Zhang
bad96176cd fix ios camera with cropping not reject on cancel cropping (#954)
* fix ios camera with cropping not reject on cancel cropping

* cancel properly from opencropper
2019-03-20 22:28:03 +01:00
Ivan Pusic
e5622719c2
(feature) video recording (#917)
* Android: Add video recording support

- Caveats:
  - Wont work if cropping is enabled
- Video recording will be used if mediaType is set to 'video'
  - Mediatype any is not supported since there is no standard intent for capture image or video

* IOS: Add video recording support

- Caveats:
  - Cropping does not work

Video recording will be enabled if mediaType is set to `video` or `any`. Note: With any the native ui
allows the user to choose whether to take a photo or record a video. This differs from android where
mediaType any will just allow taking photos.

* IOS: Set camera video quality to high

* Update README.md (#851)

* Update PickerModule.java (#862)

Fix for default values being kept when calling cropPicker from multiple locations.

Now default values if not passed will be reverted to default.

* version bump

* Add front camera support for android (#876)

* Add front camera support for android

* Update readme

* Update readme

* Update README.md

* Added missing flags to support front camera on some android phones (#891)

* Remove problematic step from manual post-install steps (#821)

* (ios) fix images are not resized after cropping. Fixes #843

* (ios) add example project xcshareddata

* (ios) fixes for camera recording. updated example project with camera recording. updated readme with camera recording

* unify ios and android camera response. Fixes #872
2019-01-18 22:17:23 +01:00
Ivan Pusic
16f435a32a (ios) fix images are not resized after cropping. Fixes #843 2019-01-18 19:41:41 +01:00
Ivan Pusic
b7abb626be
Diegolmello master (#834)
* [FIX] Poor image quality after cropping

* Update README.md (#826)

Add optional configuration details about default ios text button for the camera and the gallery

* [IMPROVEMENT] fix android cropping height condition. update podfile lock
2018-09-19 16:15:00 +02:00
Chris Bobbe
59a24d6e4c Set options.networkAccessAllowed = YES in getVideoAsset to prevent freezing when attempting to get videos stored in the cloud (#772) 2018-08-22 14:24:52 +02:00
Miguel
729e1caed3 Adds forceJpg flag to convert live photos (#791)
* Adds property to filter live photos

* Force JPG image conversion

* Renames forceJPG -> forceJpg
2018-08-20 14:33:06 +02:00
Calvin Cheng
05662bef75 Added option to configure avoidEmptySpaceAroundImage (#765)
* Added option to configure avoidEmptySpaceAround image

* Added missing interface option

* Fixes uncasted bool value
2018-07-17 10:10:02 +02:00
Phil Gebauer
3059918074 Convert unknown file types to JPEG (#735) 2018-07-02 01:55:55 +02:00
Phil Gebauer
ad5357b0a2 Reduce size of default compressed files, update README (#736) 2018-06-26 10:20:26 +02:00
Ivan Stroganov
dfa5e5d0ca Add chooseText and cancelText properties: rebased (#699)
* Add cancel and choose buttons text properties

* Change props names to ‘cancelText’,’chooseText’

* Add cancel and choose buttons text props

* Fix properties names IOS

* Add cropper prefix and update readme
2018-05-16 11:43:03 +02:00
Andrew Shini
fe1423d124 Fix orientations (#682) 2018-04-21 10:25:44 +02:00
Andrew Shini
971d64c286 Add more albums (#639) 2018-03-07 10:18:15 +01:00
Ivan Pusic
c6d43b7fe5 (ios) Add podspec support 2018-03-05 23:15:09 +01:00
Ivan Pusic
b3b9f0d7d7 (ios) Fix typo in Timelapses album 2018-02-16 10:10:36 +01:00
David-Owen-Walker
182e5e17e8 custom label for iOS (#601)
* allow crop label on iOS

* remove 'android only' from cropperToolbarTitle

* make UILabel a property

* remove whitespace
2018-02-02 10:06:40 +01:00
Phil Gebauer
3418261f73 Add option for writing temporary file (#602) 2018-02-02 10:04:31 +01:00
Gareth McCall
edaf107aa8 French localization for iOS (#593)
* add French loc file for iOS

* Fixes french loc issue
2018-01-27 11:51:40 +01:00
Jason Gaare
6bbfc643ed fix typo in creationDate property in response (#573) 2018-01-17 17:35:47 +01:00
Dror Dim
6465d4e0bf Add support for all types of smart albums (selfies, time lapses, etc.) (#564)
* Add support for all types of smart albums (selfies, time lapses, screenshots, etc.)

* readme - add list of supported smart albums

* fix readme layout
2018-01-09 18:03:31 +01:00
Phil Gebauer
64d09baf94 Skip image compression when not desired (#554) 2018-01-05 17:08:55 +01:00
Moriyuki Arakawa
25fe6d29ab add RSKImageCropper(project) to TargetDependency (#544) 2017-12-15 15:21:42 +01:00
Ivan Magda
5633a99c4a Return cropped image rectangle (#458)
* android: Update ucrop version #457

Use latest uCrop version.

* Return cropped image rectangle #457

* Update README.md #457

Update Android installation instructions.
2017-12-07 01:47:38 +01:00
Dmitry Patsura
1b50731c3f [Fix] iOS: Remove *.h files from Compile Sources (#489) 2017-12-05 01:49:08 +01:00
Jason Gaare
b59db6bffa Add creation and modification date to response (#530)
* added creationDate and modificationDate to response object

added modificationDate to Android response

* Update Compression.m (#529)

Addition of passthrough preset option

Update README to include dates in response
2017-12-05 01:48:06 +01:00
Ethan Doh
a4a2247fef Update Compression.m (#529)
Addition of passthrough preset option
2017-12-01 10:19:59 +01:00
Ivan Pusic
08077b2c83 (ios) fix deprecation related to requiresMainQueueSetup 2017-10-12 21:58:38 +02:00
Ivan Pusic
d3da5de487 extract exif data from image 2017-09-27 20:26:09 +02:00
Arturs Jansons
dc41df7ab4 Change import priority of React/RCTBridgeModule.h (#437)
Fixes https://github.com/ivpusic/react-native-image-crop-picker/issues/436
2017-09-05 16:29:31 +04:00
Ivan Pusic
07f8763c97 (ios) removed podspec 2017-08-24 21:35:41 +02:00
Chaitanya Bhagvan
ba6df59d5b Add podspec (#409)
* Added a conditional include

Added a conditional include to handle compile if installed using podspec

* Podspec

Using https://github.com/ivpusic/react-native-image-crop-picker/pull/372 as reference added a podspec.

* Update README.md

Add steps to install using Cocoapods

* Update README.md

Add installation step using cocoapods

* Update README.md
2017-08-10 23:18:07 +02:00
Ivan Pusic
d0c481ec74 cleanup error codes 2017-08-10 00:03:50 +02:00
CHEN Jiajie
b4e17df95d bug fixed - check if the source URL is empty or nil 2017-08-04 18:17:50 +08:00
CHEN Jiajie
296190e608 added minFiles option, and a new response called sourceURL 2017-08-04 15:23:59 +08:00
Zayin Krige
787fd02046 Fix for crash on ios when selecting image
Dictionary was being created with nil values. Added nil check and initialize with empty string instead
2017-07-31 16:12:08 +02:00
Zayin Krige
d7bf02f2b3 Fix crash when taking photo from camera
Dictionary was being initialized with nil values which causes crash in Obj-C. I've put a ternary in that will send empty string values for the possible nil values
2017-07-31 15:30:39 +02:00
Źmicier Biesau
83add6fbe0 Merge remote-tracking branch 'upstream/master' 2017-07-25 16:21:40 +03:00
CHEN Jiajie
57e57c7ca6 returned localIdentifier and filename in response
localIdentifier is the unique id for each PHAsset and the filename of each file, and updated the README
2017-07-25 15:30:37 +08:00
Źmicier Biesau
fba3617b7b Memory clean added 2017-07-24 19:07:01 +03:00
竹上之霜
8416d56692 [iOS] Fix a bug that cause a {0,0} size image
-[origin] if ([maxWidth integerValue] == 0 || [maxHeight integerValue] == 0) {
-when pick a width< height image and only set "compressImageMaxWidth",will cause a {0,0}size image
-Now fix it
2017-07-20 15:38:06 +08:00
Jérémy Magrin
a80f5c7a8d Fix import 2017-07-10 09:28:33 +02:00
Ivan Pusic
b3e4dc3c63 (ios) when cancelling cropping, do not exit picker completely. Instead go back to select new image. 2017-06-29 01:28:36 +02:00
Hagen Hübel
8ad75d3602 Removed TeamID from projectfile 2017-06-26 12:45:57 +02:00