429 Commits

Author SHA1 Message Date
Petter Solberg
e11ed2fb52 Fixed hardcoded jpegQuality on android when saving to temp and disk 2017-11-08 17:15:48 +01:00
Kesha Antonov
59a0b44c71 fix crash on tap focus & warning on start (#961) 2017-10-28 08:28:15 +02:00
4a6f616f Gracinha
52b11f2d32 Update README.md with NSPhotoLibraryAddUsageDescription (#924)
closes #923
2017-10-15 12:16:02 +02:00
Akshay Kadam
4b4160801e Format Code Blocks (#912)
* Format Code Blocks

* Format Code Blocks
2017-09-28 07:10:58 +02:00
Jonathan Beckman
dc1724507a Update README.md (#883)
took out an unneeded word
2017-09-10 21:18:58 +02: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
mannol
161c568095 (android): Remove nonexistant Android permission (#863)
Android does not have RECORD_VIDEO permission. For a list of available permissions check [this link](https://developer.android.com/reference/android/Manifest.permission.html).
2017-08-29 11:26:19 -07: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
rt2zz
bd9a0f37fc 0.10.0 v0.10.0 2017-08-03 12:26:21 -07:00
rt2zz
1e9484b354 remove opencollective dependency 2017-08-03 12:26:06 -07:00
Eric Dobbertin
e2c2cff4a0 Support React 16 PropTypes removal (#769) 2017-08-03 12:24:11 -07:00
rt2zz
be969cdc57 0.9.5 v0.9.5 2017-08-03 12:23:02 -07:00
Michael J Gallagher
2937ecafb9 Install from NPM not GitHub (#823) 2017-08-03 12:22:36 -07:00
Hagen Hübel
7b16017a2e Fixed README for the audio-Property for iOS (#809) 2017-08-01 10:14:42 -07:00
Max Findel
1135c53f7f Fix NullPointerException on MutableImage when taking a picture (#816) 2017-08-01 06:26:56 -07:00
rt2zz
97d5d7988a 0.9.4 v0.9.4 2017-06-15 13:32:55 -07:00
rt2zz
a39bf6bba7 [git] add package-lock.json 2017-06-15 13:32:46 -07:00
rt2zz
be31e128b4 [git] ignore package-lock
update package.json
2017-06-15 12:58:03 -07:00
Nick Pomfret
7f69acdad1 when saving images, only invoke the media scanner if the user is saving to the camera roll. (#716) 2017-06-13 18:01:34 -07:00
Zack Story
acc60d3cf8 Update README.md 2017-06-02 12:00:36 -07:00
Armin Primadi
dd8c5c1578 Fix fixOrientation in captureStill always returns true (it returns NSCFBoolean which evaluates to true even if the value is false) (#729) 2017-05-31 12:31:31 +01:00
Armin Primadi
41d3292b6b Fix invalid reference when metadataOrientation is other than 3 or 6 (#728) 2017-05-29 15:28:20 -07:00
Xavier Damman
6e840f3ebd Activating Open Collective (#722)
* Added backers and sponsors on the README

* Added call to donate after npm install

* Added template for new issue / pull request
2017-05-25 08:14:37 +01:00
Andrey Leontev
885cdf41b7 fix issue with runing on android. Add native props (#718)
I've have 2 separate confirmations that this PR works as described.  Happy to merge - thank you!
2017-05-24 16:40:10 +01:00
rt2zz
e3d3572780 0.9.0 v0.9.0 2017-05-23 11:50:08 -07:00
Symous
71098d4ed5 Fix torch init status (#709)
fix call the setTorchMode (which was calling flash erroneously)
2017-05-23 19:47:23 +01:00
Thomas Bouder
6721951bfb Upd from View.propTypes to ViewPropTypes (#697) 2017-05-22 12:06:13 -07:00
Nick Pomfret
cb4447c60e add fixOrientation option (#682)
* optional fix orientation

* comments

* docs
2017-05-17 10:32:53 -07:00
Nick Pomfret
8878954e08 Merge pull request #698 from colus001/master
Add totalSeconds description in README.md
2017-05-10 08:46:33 +01:00
Seokjun Kim
f783eb0aaf Add totalSeconds description in README.md 2017-05-09 15:26:56 +09:00
Nick Pomfret
c3525c4128 Merge pull request #693 from dayangdata/master
remove peerDependencies in package.json
2017-05-08 09:51:46 +01:00
liuqiang1357
6153d3d8ab remove peerDependencies in package.json
In react-native 0.44, this will cause "UNMET PEER DEPENDENCY" warning.
2017-05-05 16:19:21 +08:00
Ruben Maher
8937d44e1e (example): Fix the example (#692) 2017-05-04 22:39:45 -07:00
rt2zz
fc9fd2271c 0.8.0 v0.8.0 2017-05-04 09:46:38 -07:00
Nick Pomfret
d54eae9ea5 Merge pull request #674 from just-football/master
[Fix] Image orientation bug when mirroring set to true
2017-04-26 09:44:57 +01:00
Abe Botros
860aeb761a (demo): Set more precise React/React-Native package version dependencies for Example (#679)
* Set more precise React/React-Native package version dependencies

- In general, try to avoid breaking changes caused by >=
  - In particular, such a breaking change can be seen by testing the current Example
    app on Android with the existing package.json's and RN 0.43+, which causes errors
    in MainApplication public/protected method settings.

* Revert changes to main package.json

- Would erroneously break compatibility for main package
- Leave precise dependencies only for Example app, since this does not impact
  compatibility in the same way
2017-04-24 09:55:54 -07:00
Abe Botros
ae9eab3533 (android): Android tap-to-focus and improved (continuous) auto-focus (#575)
* Android tap-to-focus and improved (continuous) auto-focus

Tap-to-focus

- On tap, compute focus area around motion event's location, and pass this to the camera parameters
  as the new focus area.
- Adds RCTCameraUtils.java file, so far with only a single function that helps compute the focus area
  from a motion event. This file can serve as a location for utility constants and functions for the
  rest of the app, where such things can be extracted out.

Improved (continuous) auto-focus

- Use FOCUS_MODE_CONTINUOUS_PICTURE/VIDEO when possible to enable continuous auto-focus; fall back to
  FOCUS_MODE_AUTO otherwise, if able.

Other changes

- Update README to specify differences between iOS and Android for focus and zoom functionality.
- Update AndroidManifest with more thorough list of permissions and features.
- Update Example package.json react and react-native dependencies to match root package's package.json.

* Example: default empty onFocusChanged callback

- Enables default tap-to-focus behavior in Example app, facilitating
  testing of focus features in the Example app
2017-04-24 09:25:49 -07:00
Abe Botros
20b0721850 iOS: minor focus and zoom changes (#578)
* iOS: minor focus and zoom changes

RCTCameraManager focusAtThePoint improvements
- Dynamicaly get size from bounds of camera view, instead of full screen, since
  it might not always be the case that the Camera react component is taking up
  the entire device screen.
- Also add setting exposure to the same point of interest we are focusing on.

Example
- Add onFocusChanged and onZoomChanged empty callback functions by default to
  Example app, allowing tap-to-focus and pinch-to-zoom to be readily
  experienced/experimented with.
- Updated react/react-native dependencies to match root package.json.

TODO/Other remarks
- Tap-to-focus seems to still not work perfectly... From logging, it always seems
  to get the right location in the view (meaning its getting the right location
  from the user touch and transforming it to the {0, 1} range appropriately), and
  does indeed engage the focus process, but it seems it sometimes refocuses on the
  center-ish region of what's in the camera instead of the location that was actually
  pressed. I thought this might be related to the subjectAreaDidChange getting called,
  which in turn sets the focus mode to continuous auto-focus at the view center, but
  from my experimenting, this method never actually gets called. I wasn't able to
  figure out if there's somewhere else in the library that's forcing continuous auto-focus,
  or if there's just some bug in our current focus procedure within focusAtThePoint.

* Reset Example/package.json dependency versions to master
2017-04-23 14:01:04 -07:00
Zack Story
3e2088de79 Update README.md 2017-04-23 12:39:59 -07:00
Joshua Pinter
e187b8a0e7 (android): Update compileSdkVersion to 25 and buildToolsVersion to 25.0.2 (#677)
* Update compileSdkVersion to 25 and buildToolsVersion to 25.0.2

Best to keep these up-to-date. Doesn't affect backwards compatibility.

* Add buildToolsVersion requirement of 25.0.2.
2017-04-23 12:38:42 -07:00
Rikard Franksson
8bccc77f65 Update RCTCameraModule.java 2017-04-21 13:44:43 +02:00
rt2zz
01189f8b7d 0.7.0 v0.7.0 2017-04-18 13:08:39 -07:00
Nick Pomfret
5c54275aec android jpeg compression support (#658)
*  * removed some of the re-parsing of the output image byte array
 * removed re-saving of output file
 * moved image processing onto an async task to allow camera to be used while processing is running

* added jpeg compression support for android

* move explanation to correct bit of docs
2017-04-06 08:28:47 +02:00
Deividy Metheler
5097f95c6f android; wrap call to _camera.autoFocus into try/catch 2017-04-06 08:27:50 +02:00
Alex Dunae
8024d6992f Fix typo in code128 definition for barCodeTypes 2017-04-06 08:25:00 +02:00
Tomas Roos
4d2dcf74a5 Merge pull request #615 from NazarYablonskiy/master
Small, but important changes
2017-03-29 16:30:36 +02:00
Nick Pomfret
9fd9d1f8b1 (android): android performance improvements (#644)
* removed re-saving of output file
 * moved image processing onto an async task to allow camera to be used while processing is running
2017-03-24 00:00:56 -07:00
Nick Pomfret
98de15cf9a [android] add gps meta to android (#643)
* writing metadata.location (lat and lon coords only) to the exif data... and returning the internal url for the new image (which can be used in conjunction with the RN CameraRoll)

* just a tidy up to remove some duplication and fix some logging (no functional changes)

* oops, fix typo

* docs

* added mediaUri to ios so its the same as android
2017-03-23 08:41:01 -07:00