react-native-scanbot-barcode-scanner-sdk 4.0.2 → 4.0.3-beta.2

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/Libraries.txt CHANGED
@@ -1,4 +1,4 @@
1
- Open Source libraries used in the Scanbot Barcode SDK for React Native version 4.0.2
1
+ Open Source libraries used in the Scanbot Barcode SDK for React Native version 4.0.3-beta.2
2
2
 
3
3
  ```text
4
4
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-scanbot-barcode-scanner-sdk",
3
3
  "title": "Scanbot Barcode Scanner SDK for React Native",
4
- "version": "4.0.2",
4
+ "version": "4.0.3-beta.2",
5
5
  "scanbot": {
6
6
  "iosVersion": "4.0.2"
7
7
  },
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { EmitterSubscription, findNodeHandle, NativeMethods, Platform, UIManager } from 'react-native';
3
3
  import { Dimensions } from 'react-native';
4
4
  import { ScanbotBarcodeCameraNativeViewProperties, ScanbotBarcodeCameraViewConfiguration, ScanbotBarcodeCameraViewProperties } from './scanbot-barcode-camera-view-types';
5
- import ScanbotNativeBarcodeCameraView, { Commands } from './scanbot-native-barcode-camera-view';
5
+ import ScanbotNativeBarcodeCameraView, { BarcodeCameraViewNativeCommands } from './scanbot-native-barcode-camera-view';
6
6
  import { BarcodeResult } from '../../result';
7
7
 
8
8
  const Device = {
@@ -254,7 +254,7 @@ export class ScanbotBarcodeCameraView extends React.Component<Properties, {}> {
254
254
  sendCommandToViewId = (viewId: number, command: string, args: any = []) => {
255
255
  const cameraView = this.cameraViewReference?.current;
256
256
  if (cameraView) {
257
- Commands[command](cameraView);
257
+ BarcodeCameraViewNativeCommands[command](cameraView);
258
258
  }
259
259
  }
260
260
  }
@@ -2,7 +2,6 @@ import { HostComponent } from "react-native";
2
2
  import { ScanbotBarcodeCameraNativeViewProperties } from "./scanbot-barcode-camera-view-types";
3
3
 
4
4
  const nativeBarcodeCameraView = require('../../../js/RTNScanbotBarcodeCameraViewNativeComponent').default;
5
- const nativeBarcodeCameraViewCommands = require('../../../js/RTNScanbotBarcodeCameraViewNativeComponent').Commands;
5
+ export const BarcodeCameraViewNativeCommands = require('../../../js/RTNScanbotBarcodeCameraViewNativeComponent').Commands;
6
6
 
7
- export default (nativeBarcodeCameraView as HostComponent<ScanbotBarcodeCameraNativeViewProperties>);
8
- export const Commands = nativeBarcodeCameraViewCommands;
7
+ export default (nativeBarcodeCameraView as HostComponent<ScanbotBarcodeCameraNativeViewProperties>);