Commit Graph

73 Commits

Author SHA1 Message Date
Marc Shilling
5afc66ea54 some changes 2017-02-16 23:02:20 -05:00
Alexander Ustinov
a5ef4df07a Removed Logs 2017-02-06 23:27:12 +07:00
Alexander Ustinov
a5fd097f6d Added support Android higher 6.0
Implemented of getting real path from react-native-image-crop-picker
Extended react-native-image-crop-picker real path
2017-02-01 18:27:05 +07:00
Marc Shilling
776ca61db3 we now support AND REQUIRE React Native version > 0.40 2017-01-10 21:54:18 -05:00
Marc Shilling
03b66f956d use holo light dialog theme 2016-11-30 12:32:34 -05:00
Jesse Sessler
5bddf80868 Send originalRotation in response (#388)
* Send originalRotation in response

* Remove originalRotation from ios response
2016-11-28 14:38:02 -08:00
Kelvin Liang
1c7e53d3ce make the resized image not being stretched 2016-11-19 11:02:24 -04:00
Yoann FUKS
61801bb71b [Android] #343 + robustness code 2016-10-14 16:43:29 +02:00
Marc Shilling
4d6f5c2a77 make request codes 16 bit ints 2016-09-28 12:11:30 -04:00
Marc Shilling
16a48d59b5 make request codes more unique 2016-09-22 09:07:17 -04:00
Marc Shilling
f370ac8789 decode file after resizing to get the new width and height 2016-09-16 12:36:44 -04:00
Josh Swan
c5761829f1 Fix empty initialWidth and initialHeight [Android] (#315) 2016-09-16 09:34:28 -04:00
Marc Shilling
05309a82c5 support for RN 0.33 with backwards compatibility 2016-09-13 13:24:09 -04:00
Marc Shilling
9d227c0b37 save images to cache unless storageOptions key is provided 2016-09-08 16:58:36 -04:00
Andrew Shini
0fdea9cd64 Use array for custom buttons to ensure order (#296)
* Use array for custom buttons

* Remove space

* Import Log
2016-08-30 13:02:53 -04:00
yao
822df7e7ae ios save video,android bug when save photo/video (#292)
* Update ImagePickerManager.m

Don't save the photo when it is selected from photo library.
Save the video to camera roll when it is selected from camera  while storageOptions.cameraRoll is true.

* Update ImagePickerModule.java

There is a bug in some android versions when saving a photo or video to sd card,  the photo/video will not appear in the Gallery app.
2016-08-24 12:08:30 -04:00
Ivan Pusic
85257f7292 simplity "if" 2016-08-10 10:36:41 +02:00
Marc Shilling
4b2eb555ea add comment 2016-07-29 11:47:25 -04:00
Dmitry Gladkov
146cf6ee56 implement empty onNewIntent method to fix #275 2016-07-29 15:40:49 +03:00
Marc Shilling
32dbd290b0 remove allowsEditing option from Android 2016-07-19 15:20:27 -04:00
Marc Shilling
86d877e574 protect against null custom buttons 2016-07-05 10:49:09 -04:00
Mark Vayngrib
32ee302a51 set default opts for showImagePicker from javascript 2016-06-27 13:39:03 -04:00
yfuks
d7f265f36b [Android] fix quality issue
#240

This should fix the issue.
@doc: http://stackoverflow.com/a/4822358
2016-06-26 14:09:16 +02:00
Saturnyn
4a85c65f27 fix crash after using the camera
https://github.com/marcshilling/react-native-image-picker/issues/227
2016-06-12 12:11:43 +07:00
Marc Shilling
b0730b4a64 UTC timestamp in ISO format 2016-06-10 13:42:03 -04:00
npomfret
4ee547cb05 Do not include extraneous timestamp field, and do not include gps data if its not available. 2016-06-10 17:17:11 +01:00
npomfret
de1c958e72 * Changed the type of the gps data to be numbers
* Added a 2nd timestamp field which is the millis since 1970
2016-06-10 09:17:14 +01:00
Marc Shilling
ec41c95212 run time permissions for android API 23 2016-06-09 14:56:32 -04:00
Daniel Andrews
642ff19a52 Add latlng and timestamp to image picker response 2016-05-30 15:49:09 -05:00
Yoann Fuks
e4c25ef85d Merge pull request #203 from Keepsite/android-4.1-camera-support
Adding support to take photo on Android API 16. PackageManager.FEATUR…
2016-05-11 16:56:59 +02:00
Andrew Shield
9982e35547 Adding support to take photo on Android API 16. PackageManager.FEATURE_CAMERA_ANY does not exist on API 16. 2016-05-11 15:05:06 +01:00
yfuks
c76911a905 [Android] add path to video info 2016-05-11 15:40:28 +02:00
yfuks
f2761a41ec [Android] return an error if camera isn't available in launchCamera method 2016-04-18 21:11:33 +02:00
yfuks
abe0c7ed38 [Android] Check if the camera is available in code rather than in manifest 2016-04-13 03:18:46 +02:00
yfuks
49803e15ff [Android] add some infos to response 2016-04-09 22:52:47 +02:00
yfuks
5e9227acf4 [Android] use the uncropped file if the crop failed 2016-04-08 06:28:56 +02:00
Yoann Fuks
fb82285549 Merge pull request #143 from taskrabbit/reorient-image
[Android] reorient image on image resize
2016-04-07 00:06:18 +02:00
yfuks
f134b9158c [Android] Robustness code 2016-04-06 23:22:08 +02:00
Jeremy Eaton
8caed679bd reorient image if image disoriented 2016-03-09 14:38:48 -08:00
Jimmy Mayoukou
2ee3f5bd35 Add custom buttons feature on Android
(cherry picked from commit cb556e4)
2016-03-08 18:33:29 +01:00
yfuks
f777abaa6c [Android] use current Activity instead of mainActivity 2016-02-29 00:39:31 +01:00
yfuks
bfb8cb4054 [Android] Add video picking 2016-02-28 16:41:05 +01:00
yfuks
61d7d434e7 [Android] refactor cropping + lint
- crop directly from library/camera intent instead of using "com.android.camera.action.CROP" since it's not officially part of the android API
2016-02-27 23:44:02 +01:00
yfuks
a76c30367e [Android] fix options override 2016-02-27 19:59:50 +01:00
yfuks
5355d7ce48 [Android] read options in a function since the code is the same for library/camera 2016-02-27 15:56:56 +01:00
yfuks
fbac95b149 [Android] installation change
- upgrade react-native compilation to 0.20.+
- set version name from package.json
- manage onActivityResult in the module (not in the mainActivity)
2016-02-27 15:19:00 +01:00
yfuks
d7527e455e [Android] fix crop image cannot write Exception
doc: http://stackoverflow.com/a/24418124

fix #117
2016-02-24 23:32:21 +01:00
Marc Shilling
04b09ea995 changed native module name from UIImagePickerManager to ImagePickerManager 2016-02-23 17:47:04 -05:00
davidjeffries
af77ffe58e Added null checks
Checking nulls for options: takePhotoButtonTitle and
chooseFromLibraryButtonTitle
2016-02-15 22:47:08 -08:00
Yoann Fuks
ff09909727 [Android] fix java.lang.OutOfMemoryError Exception 2016-02-04 12:30:53 +01:00