Commit Graph
122 Commits
Author SHA1 Message Date
Michaël Villeneuve 983337d9f8 Add ability to control size by only specifying width + made orientation optionnal. see #768 2018-02-23 16:16:49 +01:00
Michaël Villeneuve e064bab7db Add width/height options 2018-02-23 16:16:35 +01:00
João Guilherme Fidelis 5e774f42b6 Merge pull request #1235 from TitanKing/patch-2
Incorrect placement of plugin.
2018-02-14 14:10:14 -02:00
Jason Schoeman 224e025757 Update build.gradle
Updated dependencies to use: `compile "com.android.support:exifinterface:26.0.2"`
2018-02-14 17:05:50 +02:00
Joao Fidelis 0b6f0abda0 feat(mirror): add option to give "mirrorImage" flag to takePicture. 2018-02-14 10:48:21 -02:00
Jason Schoeman 049b23440e Incorrect placement of plugin.
I believe this is incorrectly used here. This will cause various issues, especially using it with Android Studio. This is also the reason you have to specify the QA compile error. The plugin `com.android.support:exifinterface:+` should at the very least be used but then not even, rather have it as part of the installation process to include the dependency build.gradle.
2018-02-13 12:06:12 +02:00
Joao Fidelis e21d2f4c87 Use most recent cameraview commit 2018-02-03 10:37:35 -02:00
Joao Fidelis 1e2dd4e61f Change new package location to avoid a Android studio bug 2018-02-03 09:36:03 -02:00
Joao Fidelis 377b184e04 Migrate Android from RCTCameraPackage to RNCameraPackage 2018-02-02 17:27:05 -02:00
Joao Fidelis ad1b140790 Organize imports and add missing method from Expo implementation (android) 2018-02-01 17:09:19 -02:00
Michael Schoendorfer b64f37af50 Fixes that Camera is started multiple times
This is copied from: https://github.com/expo/expo/blob/5164fdc50b824ecc95f18a74e5537773e366a1f7/android/expoview/src/main/java/abi25_0_0/host/exp/exponent/modules/api/components/camera/ExpoCameraView.java#L294
RNCameraView does not properly handle when the App is closed and opened
again. Previously the CameraView was started multiple times which leads
to a black screen on some devices.
2018-02-01 18:13:33 +01:00
Joao Fidelis 91a560ac1c Improve android performance with Expo picture resolve implementation.
Get rid of MutableImage.
Return base64 only if asked via options map.
2018-01-30 11:14:17 -02:00
seblau 612b3bfe9a correctly assign barCode to BarCodeReadEvent 2018-01-26 15:41:03 +01:00
Joao Fidelis a09436e9ab Implement get view from reactTag on Android and iOS.
Do not save app context on CameraModule
2018-01-24 19:32:24 -02:00
Stanislav Shakirov 0b5ae8f9e3 Return to compile gradle api. revert
revert https://github.com/react-native-community/react-native-camera/commit/9c76310c9373c4c975230ebb61fd810a5188ef3e
fixed https://github.com/react-native-community/react-native-camera/issues/1145
Most of react-native projects is still using old gradle api. There is not issue to stay with old api.
2018-01-24 14:59:24 +03:00
Nicolas Morin cebc0601d1 Fix cropToPreview on Android 2018-01-24 10:01:16 +01:00
Nicolas Morin 286071c035 Fix startPreview and stopPreview on Android 2018-01-23 22:17:18 +01:00
Joao Fidelis f53aab5729 Create local cache directory and save image there when photo is taken. 2018-01-23 01:48:03 -02:00
Joao Fidelis 07e6e566d5 Issue ##1099: Make takePictureAsync return { width, height, base64, exif } 2018-01-22 19:25:35 -02:00
Joao Fidelis 9c76310c93 Change dependencies on build.gradle from compile to api. 2018-01-22 17:33:04 -02:00
Daniel Levitt 6039a63344 Possible zoom for android 2018-01-22 10:12:29 +00:00
Sibelius Seraphini 504d4b1fda feature(rncamera): enable record on RNCamera on android, fix #1101 2018-01-21 12:56:46 -02:00
Nicolas Morin 0778294697 Fix performance issue on Android: add option to clear window background when camera starts 2018-01-20 21:17:19 +01:00
Nicolas Morin 2c3444ce29 Return picture size 2018-01-19 19:52:26 +01:00
Oscar Franco c7c3caa49a Merge pull request #948 from SteffenUlrich/master
correct aproach for delta error
2018-01-12 20:34:17 +01:00
Oscar Franco a4ad0446ca Merge pull request #972 from MassiveMediaMatch/master
Fix for: Fast swiping and touching while loading crashes the app
2018-01-12 20:30:03 +01:00
Oscar Franco cde5493870 [BUGFIX] Fix crash on empty mFaceDetector instance when face is not recognized 2018-01-09 12:56:58 +01:00
Sibelius Seraphini cebc2268a6 Merge pull request #904 from leepa/master
Disallow capture when Camera is null (Android)
2018-01-08 12:56:10 -08:00
Marcus Andersson e546ae852c fixed merge conflicts. 2018-01-08 21:12:39 +01:00
Sibelius Seraphini eb6a250ced fix rename issue 2018-01-03 09:47:10 -02:00
Sibelius Seraphini a0817132d6 rename expo to simple RN, add js files, and export them inside the same camera package 2018-01-01 19:16:02 -02:00
Sibelius Seraphini ffc74e5e6e Add Camera implementation using CameraView on Android
This is most a copy of expo camera module

this still half baked, missing javascript part and package and modules
fixes

see #246
2017-12-31 13:49:39 -02:00
Marcus Andersson 93177c8604 changed so we use the correct exceptions. 2017-12-20 20:25:01 +01:00
Marcus Andersson c51f0b5f93 fixed so android cropping works in all orientations. 2017-12-20 20:19:14 +01:00
Marcus Andersson ed2768828b fixed some formatting issues. 2017-12-20 20:19:14 +01:00
Marcus Andersson c323105328 added switch to toggle cropping. 2017-12-19 15:04:41 +01:00
Marcus Andersson c6ad435532 added support for android to crop image to preview. 2017-12-19 15:03:08 +01:00
Slavik 874a29f7cb (barcode): Fix scan on landscape mode (#949)
* add scan support for landscape mode

* refactoring

* fix errors

* fix rotation

* add landscape orientation support

* fix exception

* freeze preview image

From PR https://github.com/lwansbrough/react-native-camera/pull/919
2017-12-07 12:17:02 -08:00
Sibelius Seraphini 241b5d1060 Merge pull request #859 from cbrevik/start-stop-preview
Add start/stopPreview for Camera
2017-12-07 10:48:23 -02:00
Petter Solberg e11ed2fb52 Fixed hardcoded jpegQuality on android when saving to temp and disk 2017-11-08 17:15:48 +01:00
Lowie Huyghe ca48b33f7f Fix for: Fast swiping and touching while component is being loaded can cause _camera to be null. 2017-11-07 17:02:48 +01:00
SteffenUlrich b5baca03e8 correct aproach for delta error 2017-10-18 14:37:56 +02:00
Lee Packham 780a6c70c9 Disallow capture when Camera is null (Android)
If a user of the library called `capture` too early then it tries to get
the device orientation from the RCTCamera instance... which doesn't yet
exist.

Instead of adding anything clever in the library, just call
promise.reject() so that the host application can decide what to do with
this issue (probably wait, retry in a bit).

This mainly effects slower Android devices where the camera can take a
long time to initialize.
2017-09-23 23:17:54 +01:00
gabrielSchaidhauer 537b7696b4 (android): Missing ; on constructor (#880)
On the RCTCameraModule is missing a ';' causing a build failure.
2017-09-08 13:26:53 -07:00
Andy Li 618f5ec92f [captureWithOrientation()] Load shutter_click sound to reduce latency while playing during capture (#871) 2017-09-08 22:03:35 +02:00
Christian Brevik 4e04e3484b Make safer calls on Android 2017-08-29 14:35:35 +02:00
Christian Brevik 1bcf8577a4 Add start/stopPreview for Camera 2017-08-27 18:08:58 +02:00
Guy Blank e3fc27711c (barcode): Fix for missing bounds in Android #683 (#845) 2017-08-19 15:19:18 -07:00
Radek Czemerys 02eb51d962 Remove createJSModules @override marker - RN 0.47 compatibility (#821)
* Remove depreciated createJSModules @ovveride marker

* Added comment

* Fix typo in comment

* Fix typo in comment
2017-08-07 12:52:31 -07:00
Max Findel 1135c53f7f Fix NullPointerException on MutableImage when taking a picture (#816) 2017-08-01 06:26:56 -07:00