react-native-ux-cam 6.0.4 → 6.0.6

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,8 @@
5
5
 
6
6
  Version | Changes
7
7
  ------- | ----------
8
+ 6.0.6 | Updated iOS SDK to 3.6.24 and Android to 3.6.41
9
+ 6.0.5 | Fix nullable not mapping properly on iOS on RN 0.78
8
10
  6.0.4 | Updated iOS SDK to 3.6.22 and Android to 3.6.38
9
11
  6.0.3 | Updated iOS SDK to 3.6.21 and Android to 3.6.37
10
12
  6.0.2 | Updated iOS SDK to 3.6.20 and Android to 3.6.36
package/RNUxcam.podspec CHANGED
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
18
18
  s.requires_arc = true
19
19
  s.static_framework = true
20
20
 
21
- s.dependency 'UXCam' , '~> 3.6.22'
21
+ s.dependency 'UXCam' , '~> 3.6.24'
22
22
 
23
23
  if defined? install_modules_dependencies
24
24
  # Default React Native dependencies for 0.71 and above (new and legacy architecture)
@@ -69,7 +69,7 @@ rootProject.allprojects {
69
69
 
70
70
  dependencies {
71
71
  implementation 'com.facebook.react:react-native:+'
72
- implementation 'com.uxcam:uxcam:3.6.38'
72
+ implementation 'com.uxcam:uxcam:3.6.41'
73
73
  }
74
74
 
75
75
  if (isNewArchitectureEnabled()) {
@@ -57,7 +57,7 @@ public class RNUxcamModuleImpl {
57
57
  public static final String HIDE_GESTURES = "hideGestures";
58
58
 
59
59
  private static final String UXCAM_PLUGIN_TYPE = "react-native";
60
- private static final String UXCAM_REACT_PLUGIN_VERSION = "6.0.4";
60
+ private static final String UXCAM_REACT_PLUGIN_VERSION = "6.0.6";
61
61
 
62
62
  private final ReactApplicationContext reactContext;
63
63
 
@@ -32,7 +32,7 @@ static NSString* const RNUxcam_HideGestures = @"hideGestures";
32
32
  static NSString* const RNUxcam_OverlayColor = @"color";
33
33
 
34
34
  static NSString* const RNUxcam_PluginType = @"react-native";
35
- static NSString* const RNUxcam_PluginVersion = @"6.0.4";
35
+ static NSString* const RNUxcam_PluginVersion = @"6.0.6";
36
36
 
37
37
 
38
38
  @interface RNUxcam ()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ux-cam",
3
- "version": "6.0.4",
3
+ "version": "6.0.6",
4
4
  "description": "React Native wrapper for uxcam.com.",
5
5
  "react-native": "src/index",
6
6
  "main": "src/index",
@@ -35,7 +35,7 @@ export interface Spec extends TurboModule {
35
35
 
36
36
  tagScreenName: (screenName: string) => void;
37
37
 
38
- logEvent: (eventName: string, properties?: Object) => void;
38
+ logEvent: (eventName: string, properties: Object | null) => void;
39
39
  setUserIdentity: (userIdentity: string) => void;
40
40
 
41
41
  // Here value should be either number | string but as union types are not officially supported, we pass value as string
package/src/UXCam.js CHANGED
@@ -324,13 +324,25 @@ export default class UXCam {
324
324
 
325
325
  static occludeSensitiveView(sensitiveView) {
326
326
  if (sensitiveView) {
327
- UXCamBridge.occludeSensitiveView(findNodeHandle(sensitiveView), false);
327
+ const tag = findNodeHandle(sensitiveView);
328
+ if (tag) {
329
+ // Add a small delay to allow the native view to be registered
330
+ setTimeout(() => {
331
+ UXCamBridge.occludeSensitiveView(tag, false);
332
+ }, 10);
333
+ }
328
334
  }
329
335
  }
330
336
 
331
337
  static occludeSensitiveViewWithoutGesture(sensitiveView) {
332
338
  if (sensitiveView) {
333
- UXCamBridge.occludeSensitiveView(findNodeHandle(sensitiveView), true);
339
+ const tag = findNodeHandle(sensitiveView);
340
+ if (tag) {
341
+ // Add a small delay to allow the native view to be registered
342
+ setTimeout(() => {
343
+ UXCamBridge.occludeSensitiveView(tag, true);
344
+ }, 10);
345
+ }
334
346
  }
335
347
  }
336
348
 
package/src/index.d.ts CHANGED
@@ -117,7 +117,7 @@ export default class UXCam {
117
117
 
118
118
  @note Only number and string property types are supported to a maximum count of 100 and maximum size per entry of 1KiB
119
119
  */
120
- static logEvent: (eventName: string, properties?: Object) => void;
120
+ static logEvent: (eventName: string, properties: Object | null) => void
121
121
 
122
122
  /**
123
123
  UXCam verification listener that returns success/failure status. TRUE status means the session was successfully verified and started.