407 Commits

Author SHA1 Message Date
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
Nazar Yablonskiy
efd5931fd8 updated Breaking Changes section of README.md 2017-03-07 08:11:59 +02:00
Nazar Yablonskiy
fa0729cd8a Revert "0.6.1"
This reverts commit 8d188b8b73fc12744d022b81f63f4b7bb12e1fe5.
2017-03-06 21:10:31 +02:00
Douglas Duhaime
da68ee86a1 let flexbox resize components (#620) 2017-03-06 10:33:16 -08:00
Nazar Yablonskiy
8d188b8b73 0.6.1 2017-02-27 22:15:55 +02:00
Nazar Yablonskiy
79ff4688ae upd readme 2017-02-27 21:27:06 +02:00
Nazar Yablonskiy
b1ea73bbb4 fix example 2017-02-27 21:26:21 +02:00
Nazar Yablonskiy
b35f8fc3cb removed some uses-permission 2017-02-27 21:25:18 +02:00
Mike Monteith
c688c8344c Encourage use of newest version (0.6) (#601) 2017-02-15 10:28:59 -08:00
Tomas Roos
65f7903fff Merge pull request #564 from Hybrid-Force/onBarCodeRead-prop-update-fix
Update barcode read event listener when `onBarCodeRead` prop updates
2017-02-13 17:05:02 +01:00
Tomas Roos
371a6a0dfa Merge pull request #586 from tmc/datamatrix
Added runtime check for supported bar code types
2017-02-13 16:54:59 +01:00
Tomas Roos
7ed17d81d6 Merge pull request #589 from abcd-ca/master
Added important notes about iOS 10 privacy rules
2017-02-13 16:19:02 +01:00
Andrew Blair
5e9e0edb79 Added important notes about iOS 10 privacy rules
about needing to define strings for `NSCameraUsageDescription` and `NSMicrophoneUsageDescription`
2017-02-06 16:38:18 -08:00
Michael Nolivos
9f3d893f42 Added runtime check for supported bar code types 2017-02-03 20:47:50 -08:00
rt2zz
afdd91c668 0.6.0 v0.6.0 2017-01-31 15:34:51 -08:00
Chirag
d0f48894b6 (ios): fix header search paths (#577) 2017-01-30 17:42:51 -08:00
egpast
edcd2435de Fix iOS orientation logic typo (#573)
- This typo results in all roughly face-up still pictures being interpreted as portrait shots.
2017-01-28 01:49:11 -08:00
Alejandro Garcia
5ed6b81493 Updated README.md - added missing permission in android manifest (#567) 2017-01-25 11:58:46 -08:00
Derek Hsu
c12fd726a3 Fix barcode type ‘code128’ typo (#563) 2017-01-22 23:20:39 -08:00
Derek Hsu
a4dbc5e007 Update barcode read event listener when onBarCodeRead prop updates 2017-01-23 15:02:27 +08:00
rt2zz
860d3bfe19 0.5.1 v0.5.1 2017-01-22 19:41:59 -08:00
rt2zz
f648266d61 (deps): add rn as peer dep 2017-01-22 19:41:44 -08:00
Zack Story
fe43f554f1 Update README.md 2017-01-22 19:39:36 -08:00