Now `react-native-image-crop-picker` allow to choose any `image/*` file for cropping. But related to https://github.com/Yalantis/uCrop/issues/166#issuecomment-245606245 only `libjpeg` and `libpng` under the hood libUCrop. So I think will be useful to filter image files only ready for cropping
* [ANDROID] (get duration from any video)
platform - ANDROID
updated - PickerModule.java
implemented:
1) get video duration in milliseconds from any video
* implemented without any additional installations and dependencies
* [IOS] (get duration from any video)
platform - IOS
updated - ImageCropPicker.m
implemented:
1) get video duration in milliseconds from any video
* implemented without any additional installations and dependencies
* updated README.md
add duration property to "Response Object"
Description for field - "Video duration time in milliseconds"
* change seconds to milliseconds
* Switch Android SDK 29 deprecated methods to alternatives (ivpusic#1110)
Android SDK 29 deprecated the following method for getting external directories
that we use repeatedly.
https://developer.android.com/reference/android/os/Environment#getExternalStoragePublicDirectory(java.lang.String)
I converted the various use cases to use the suggested alternative in
the Context API.
https://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String)
* Updated podspec
* Added iOS 13 DarkMode for picker (#1129)
* Update README.md
* version bump
* Removed isMovingToParentViewController so scroll to bottom works (#1137)
* Fix deprecated RCTImageLoader.h import (#1142)
* upgrade example project to react-native 0.61
* version bump
* Update README.md
* 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
* Fix xCode warnings about main thread execution (#1146)
This kind of warnings also presents in output console if Main Thread Checker is active
* ignore iml files
* version bump
* Fix typo (#1150)
Changed the word "noticable" to "noticeable".
* update type (#1200)
* CocoaPods - Properly Interpolate Tag Version (#1174)
Why?
* Ruby uses `"` quotes when interpolation is required. Using `'` will mean `v#{version}`
is used directly rather than providing the version number.
Changes:
1. User Ruby string interpolation when setting the tag version for the source.
* small typing improvements
* version bump
* fix typings for writeTempFile
* version bump
* (ios) changing images sort order
* upgrade react-native-cli
* using local QBImagePicker as podspec
* Update README.md (#1265)
Clarify that avoidEmptySpaceAroundImage option is (ios only)
* testing with sdk 29
* update yarn.lock
* version bump
Co-authored-by: Phil Simmons <phil@flyclops.com>
Co-authored-by: Yury Korzun <yury@flyclops.com>
Co-authored-by: cr1s3c <yannre1210@gmail.com>
Co-authored-by: Filipe Merker <filipesmerker@gmail.com>
Co-authored-by: Artur Eshenbrener <strate@yandex.ru>
Co-authored-by: Suraneti Rodsuwan <suraneti.rod@gmail.com>
Co-authored-by: mikunimaru <43168745+mikunimaru@users.noreply.github.com>
Co-authored-by: Peter Lucak <login@peterlucak.com>
Co-authored-by: Ivan Pusic <ivpusic@users.noreply.github.com>
Co-authored-by: Mujtaba F. Radhi <al.mujtaba@hotmail.com>
* 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
* [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
* 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
* Add option to set the cropper toolbar title
I needed to change the toolbar title but didn't know any other way so I thought about adding this functionality. Currently, as my knowledge is limited to java, this is currently only available for Android.
Example usage:
```
ImagePicker.openCropper({
path: 'image.png',
width: 800,
height: 800,
cropperToolbarTitle: 'Please, crop your photo',
})
```
If no title is provided, the default one from the library will be used.
* Update docs