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
package/package.json
CHANGED
|
@@ -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, {
|
|
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
|
-
|
|
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
|
|
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>);
|