henry-capture-vision-react-native
Advanced tools
Comparing version 1.1.12 to 1.1.13
import { BarcodeResult } from './BarcodeResult'; | ||
import { DBRRuntimeSettings, EnumDBRPresetTemplate } from "./BarcodeSettings"; | ||
export declare class DynamsoftBarcodeReader { | ||
export declare class DCVBarcodeReader { | ||
static initLicense(license: string): Promise<void>; | ||
static createInstance(): Promise<DynamsoftBarcodeReader>; | ||
static createInstance(): Promise<DCVBarcodeReader>; | ||
getVersion(): Promise<string>; | ||
@@ -17,2 +17,6 @@ getRuntimeSettings(): Promise<DBRRuntimeSettings>; | ||
} | ||
export declare const DCVBarcodeReader: typeof DynamsoftBarcodeReader; | ||
/** | ||
* @deprecated since version 1.1.5, | ||
* use DCVBarcodeReader instead. | ||
*/ | ||
export declare const DynamsoftBarcodeReader: typeof DCVBarcodeReader; |
@@ -12,7 +12,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DCVBarcodeReader = exports.DynamsoftBarcodeReader = void 0; | ||
exports.DynamsoftBarcodeReader = exports.DCVBarcodeReader = void 0; | ||
const react_native_1 = require("react-native"); | ||
const DBRModule = react_native_1.NativeModules.RNDynamsoftBarcodeReader; | ||
const DBREventEmitter = new react_native_1.NativeEventEmitter(DBRModule); | ||
class DynamsoftBarcodeReader { | ||
class DCVBarcodeReader { | ||
static initLicense(license) { | ||
@@ -31,3 +31,3 @@ return __awaiter(this, void 0, void 0, function* () { | ||
yield DBRModule.createInstance(); | ||
return new DynamsoftBarcodeReader(); | ||
return new exports.DynamsoftBarcodeReader(); | ||
}); | ||
@@ -80,4 +80,8 @@ } | ||
} | ||
exports.DynamsoftBarcodeReader = DynamsoftBarcodeReader; | ||
exports.DCVBarcodeReader = DynamsoftBarcodeReader; | ||
exports.DCVBarcodeReader = DCVBarcodeReader; | ||
/** | ||
* @deprecated since version 1.1.5, | ||
* use DCVBarcodeReader instead. | ||
*/ | ||
exports.DynamsoftBarcodeReader = DCVBarcodeReader; | ||
//# sourceMappingURL=DynamsoftBarcodeReader.js.map |
@@ -13,3 +13,3 @@ import * as React from 'react'; | ||
} | ||
export declare class DynamsoftCameraView extends React.Component<Props, {}> { | ||
export declare class DCVCameraView extends React.Component<Props, {}> { | ||
dispatcher: CommandDispatcher; | ||
@@ -29,3 +29,7 @@ references: number | React.ComponentClass<any, any> | React.Component<any, any, any> | null; | ||
} | ||
export declare const DCVCameraView: typeof DynamsoftCameraView; | ||
/** | ||
* @deprecated since version 1.1.5, | ||
* use DCVCameraView instead. | ||
*/ | ||
export declare const DynamsoftCameraView: typeof DCVCameraView; | ||
declare class CommandDispatcher { | ||
@@ -32,0 +36,0 @@ dceViewHandle: any; |
@@ -37,3 +37,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DCVCameraView = exports.DynamsoftCameraView = void 0; | ||
exports.DynamsoftCameraView = exports.DCVCameraView = void 0; | ||
const React = __importStar(require("react")); | ||
@@ -50,3 +50,3 @@ const react_native_1 = require("react-native"); | ||
}; | ||
class DynamsoftCameraView extends React.Component { | ||
class DCVCameraView extends React.Component { | ||
constructor(props) { | ||
@@ -78,4 +78,4 @@ super(props); | ||
convertProp(value, key) { | ||
if (typeof value === 'string' && DynamsoftCameraView.ConversionTables[key]) { | ||
return DynamsoftCameraView.ConversionTables[key][value]; | ||
if (typeof value === 'string' && DCVCameraView.ConversionTables[key]) { | ||
return DCVCameraView.ConversionTables[key][value]; | ||
} | ||
@@ -91,7 +91,11 @@ return value; | ||
} | ||
exports.DynamsoftCameraView = DynamsoftCameraView; | ||
DynamsoftCameraView.ConversionTables = { | ||
exports.DCVCameraView = DCVCameraView; | ||
DCVCameraView.ConversionTables = { | ||
torchState: DBRModule.TorchState | ||
}; | ||
exports.DCVCameraView = DynamsoftCameraView; | ||
/** | ||
* @deprecated since version 1.1.5, | ||
* use DCVCameraView instead. | ||
*/ | ||
exports.DynamsoftCameraView = DCVCameraView; | ||
class CommandDispatcher { | ||
@@ -98,0 +102,0 @@ constructor(viewHandle) { |
{ | ||
"name": "henry-capture-vision-react-native", | ||
"version": "1.1.12", | ||
"version": "1.1.13", | ||
"description": "Dynamsoft Capture Vision React Native SDK", | ||
@@ -5,0 +5,0 @@ "homepage": "https://www.dynamsoft.com/capture-vision/docs/introduction", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193114
813