You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(android): Android tap-to-focus and improved (continuous) auto-focus (react-native-camera#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
By default, `onZoomChanged` is not defined and pinch-to-zoom is disabled.
280
284
285
+
Android: This callback is not yet implemented. However, Android will
286
+
automatically handle pinch-to-zoom; there is currently no way to manage this
287
+
from javascript.
288
+
281
289
#### `iOS``keepAwake`
282
290
283
291
If set to `true`, the device will not sleep while the camera preview is visible. This mimics the behavior of the default camera app, which keeps the device awake while open.
0 commit comments