scandit-react-native-datacapture-core 6.19.0-beta.0 → 6.19.0-beta.1

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.
@@ -42,7 +42,7 @@ android {
42
42
  }
43
43
 
44
44
  dependencies {
45
- def sdk_version = "6.19.0-beta.0"
45
+ def sdk_version = "6.19.0-beta.1"
46
46
 
47
47
  println("Version of the native sdk used in this build: ${safeExtGet('global_sdk_version', sdk_version)}")
48
48
  if (findProject(':scandit-datacapture-frameworks-core') != null) {
@@ -38,6 +38,13 @@ class RNTSDCDataCaptureViewManager: RCTViewManager, DeserializationLifeCycleObse
38
38
  return
39
39
  }
40
40
 
41
+ if dcView.superview != nil && dcView.superview == container {
42
+ // if attached to the same container do nothing. Removing and adding
43
+ // it again might trigger something in the DataCaptureView that we don't
44
+ // want. (overlay re-drawn, black screen, etc.)
45
+ return
46
+ }
47
+
41
48
  if dcView.superview != nil {
42
49
  dcView.removeFromSuperview()
43
50
  }
@@ -63,6 +70,13 @@ class RNTSDCDataCaptureViewManager: RCTViewManager, DeserializationLifeCycleObse
63
70
  let captureView = dataCaptureView else {
64
71
  return
65
72
  }
73
+ if captureView.superview != nil && captureView.superview == container {
74
+ // if attached to the same container do nothing. Removing and adding
75
+ // it again might trigger something in the DataCaptureView that we don't
76
+ // want. (overlay re-drawn, black screen, etc.)
77
+ return
78
+ }
79
+
66
80
  if captureView.superview != nil {
67
81
  captureView.removeFromSuperview()
68
82
  }
@@ -9,7 +9,7 @@ var DataCaptureVersion = /** @class */ (function () {
9
9
  }
10
10
  Object.defineProperty(DataCaptureVersion, "pluginVersion", {
11
11
  get: function () {
12
- return '6.19.0-beta.0';
12
+ return '6.19.0-beta.1';
13
13
  },
14
14
  enumerable: false,
15
15
  configurable: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scandit-react-native-datacapture-core",
3
- "version": "6.19.0-beta.0",
3
+ "version": "6.19.0-beta.1",
4
4
  "description": "Scandit Data Capture SDK for React Native",
5
5
  "homepage": "https://github.com/Scandit/scandit-react-native-datacapture-core",
6
6
  "main": "js/index.js",