react-native-rectangle-doc-scanner 10.4.0 → 10.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -80,6 +80,12 @@ class CameraController(
80
80
  return
81
81
  }
82
82
 
83
+ // Check lifecycle state
84
+ Log.d(TAG, "[CAMERAX] Current lifecycle state: ${lifecycleOwner.lifecycle.currentState}")
85
+ if (lifecycleOwner.lifecycle.currentState != androidx.lifecycle.Lifecycle.State.RESUMED) {
86
+ Log.w(TAG, "[CAMERAX] Lifecycle is not RESUMED, camera stream may not start")
87
+ }
88
+
83
89
  // Select camera
84
90
  val cameraSelector = if (useFrontCamera) {
85
91
  CameraSelector.DEFAULT_FRONT_CAMERA
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "10.4.0",
3
+ "version": "10.5.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",