9 Commits

Author SHA1 Message Date
Oscar Franco
7fb27917d2 (android) Add missing permissions to Example project 2018-01-05 10:48:13 +01:00
Sibelius Seraphini
ab357b2f57 feat(example): upgrade example to latest rn version 51 2017-12-31 13:13:29 -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
Ruben Maher
8937d44e1e (example): Fix the example (#692) 2017-05-04 22:39:45 -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
Nazar Yablonskiy
b1ea73bbb4 fix example 2017-02-27 21:26:21 +02:00
Nicolas Charpentier
880f469082 Update Example to RN 0.34 and Xcode 8 2016-09-23 16:08:56 -04:00
Gonzalo Aguirre
b01c64e773 Mirror image for Android (#399)
* Add mirrorImage support for Android

* Release resources after mirroring

* Mirror image only for TYPE_FRONT

* Remove unnecessary annotation

* Document mirrorImage for Android

* Improved compression and error handling

* Add support for mirroring on Android back camera too
2016-09-13 09:48:48 -07:00
Nicolas Charpentier
1024c6bed5 Add example 2016-05-30 11:19:43 -04:00