react-native-rectangle-doc-scanner 4.17.0 → 5.0.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.
@@ -47,7 +47,8 @@ class CameraView(context: Context) : FrameLayout(context), LifecycleOwner {
47
47
  // Callback for detected rectangles
48
48
  var onRectangleDetected: ((Rectangle?) -> Unit)? = null
49
49
 
50
- override fun getLifecycle(): Lifecycle = lifecycleRegistry
50
+ override val lifecycle: Lifecycle
51
+ get() = lifecycleRegistry
51
52
 
52
53
  init {
53
54
  // Create preview view
@@ -66,7 +66,8 @@ class DocumentScannerView(context: ThemedReactContext) : FrameLayout(context), L
66
66
  private const val TAG = "DocumentScannerView"
67
67
  }
68
68
 
69
- override fun getLifecycle(): Lifecycle = lifecycleRegistry
69
+ override val lifecycle: Lifecycle
70
+ get() = lifecycleRegistry
70
71
 
71
72
  init {
72
73
  Log.d(TAG, "╔════════════════════════════════════════╗")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "4.17.0",
3
+ "version": "5.0.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",