v3.7.0
版本发布时间: 2024-01-08 20:27:53
mrousavy/react-native-vision-camera最新发布版本:v4.5.3(2024-09-08 18:42:23)
3.7.0 (2024-01-08)
Quite a big release again! 🥳
Notable changes:
- If you use the
CodeScanner
API, make sure to use the newVisionCamera_enableCodeScanner
flag for Android which makes sure the MLKit model always gets bundled! (see the docs) 🕵️ - A ton of blackscreen and out of sync issues have been fixed on Android. See this PR.
✨ Features
- Add new
enableCodeScanner
prop tobuild.gradle
to make sureCodeScanner
always works (#2355) (5c99728) - Make
enableCodeScanner
expo config-plugin install the native dependency (#2348) (a8c16e3) - Make
Frame
thread-safe and improve error messages (#2327) (895f3ec) - Add two new
format/
errors:invalid-video-stabilization-mode
andformat-required
(#2354) (cc60ad2) - Support 60 FPS on Samsung devices (if available) (#2339) (0d21bc3)
🐛 Bug Fixes
- Fix blackscreen issues and lifecycle when closing Camera (#2339) (0d21bc3)
- Fix a scenario where the concurrent
configure { ... }
mechanism could drop important updates (#2339) (0d21bc3) - Fix Android lifecycle by allowing Android to close the
CameraDevice
whenisActive=false
(#2339) (0d21bc3) - Fix Android blackscreens by refactoring
CameraSession
setup (#2339) (0d21bc3) - Fix "photo/video is not enabled" errors (#2339) (0d21bc3)
- Fix "maxImages (3) has already been acquired" error (#2352) (2cd22ad)
- Fix "The given value for videoStabilizationMode could not be parsed" error (#2353) (833ffb8)
- Fix crash when trying to
console.log(frame)
(#2335) (3dc7511) - Fix for inset of SENSOR_INFO_ACTIVE_ARRAY_SIZE for Android < 11 (#2306) (7905f2c)
- Fix iOS native
enableZoomGesture
zoom logic (#2329) (30c4f9e) - Fix min/max exposure range on Android (#2304) (0d3ecd1)
- Unwrap boxed JNI types directly (#2337) (ef4e9fa)
- Validate input props (
fps
,hdr
,torch
, ...) instead of silently crashing (#2354) (cc60ad2)
💨 Performance Improvements
- Make
getCameraPermission
andgetMicrophonePermission
synchronous (#2302) (591cf30) - Don't re-create anything if session is closing down (#2339) (0d21bc3)