* 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
* 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
* Add 1080p, 720p, and 480p capture qualities.
* Minor improvements for picture/video sizing.
- Minor refactoring for getting supported sizes (DRY).
- Add explicit pictureSize setting for 480p/720p/1080p in still/picture mode.
* Use util.Size objects for 480p/720p/1080p sizing.
- Note using Camera.Size objects would require a camera instance prior to creating the
size objects, which would be manageable but not too clean.
* Remove 480p for iOS; 16:9/HD aspect ratio for Android 480p
- iOS only has a 640x480 480p-like AVCaptureSessionPreset, which is not the typical 16:9/HD aspect ratio
desired. Removing this option as a result of this.
- Android 480p updated to use 16:9/HD aspect ratio.
* Add notes for (in)exact sizing for 1080p/720p/480p
* Re-add 480p on iOS, more notes on resolutions.
- Add notes on non-HD-aspect-ratio for iOS 480p.
- Add more explanation of variable resolution/sizes, especially for 480p on Android.
* Use custom Resolution class to hold 480p/720p/1080p resolution sizes
- Mistakenly used util.Size class before, which was not added until Android API level 21 (current
min is 16).
* use device orientation on android only with auto orientation
* guard against missing playSoundOnCapture and quality props in options
* add video orientation support
* use device orientation on ios only with auto orientation
* fix regression on iOS
* use device orientation on android only with auto orientation
* guard against missing playSoundOnCapture and quality props in options
* add video orientation support
* use device orientation on ios only with auto orientation