| layout | default-layout |
|---|---|
| title | License Activation - Dynamsoft Barcode Reader React Native Edition |
| description | Initialize the license of Dynamsoft Barcode Reader React Native edition. |
| keywords | license initialization, licensing |
| needAutoGenerateSidebar | true |
You can request a 30-day trial license via the Request a Trial License{:target="_blank"} link.
You can contact our support team via the Contacting Us{:target="_blank"} link when your license generation failed.
Contact us{:target="_blank"} to purchase a full license.
const LICENSE = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
const StartScanning = (): Promise<BarcodeScanResult> => {
let barcodeScanConfig = {
license: LICENSE
} as BarcodeScanConfig;
return BarcodeScanner.launch(barcodeScanConfig);
};The following shows how to set the license in the code.
const License = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
LicenseManager.initLicense(License).catch(e => {
Alert.alert('License error', e.message);
});