Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@extrieve_technologies/quickcapture_react_native
Advanced tools
A react native port for QuickCapture AI Document scanning SDK with QR & BAR code Generation and scanning
A React Native port of quickcapture for easy integration into mobile applications.
The Quickcapture plugin offers functionalities for capturing documents and optical codes (like QR codes and barcodes), building PDFs from captured images, and generating QR and barcode images from provided data. This document guides you through the installation and utilization of the Quickcapture plugin in your React Native application.
Follow these steps to install the Quickcapture plugin using either npm or Yarn, depending on your preference:
Using npm
npm install @extrieve_technologies/quickcapture_react_native
cd ios && pod install && cd..
Rebuild your application to ensure all native dependencies are properly linked. For iOS:
npx react-native run-ios
For Android:
npx react-native run-android
Using Yarn
yarn add @extrieve_technologies/quickcapture_react_native
First, import the necessary modules and initialize quickcapture:
import {
//If need to activate the SDK without restrictions - optional
activateLicense,
//TO initialise license - mandatory
initialise,
//For Document Capture capabilities, add following - optional
captureDocument,
buildPdfForLastDocumentCapture,
//For Bar/QR Code capabilities, add following - optional
captureOpticalCode,
generateQRCode,
generateBarcode,
} from '@extrieve_technologies/quickcapture_react_native';
// Initialize Quickcapture
//activateLicense('Your Android license key', 'Your iOS license key');
activateLicense(androidLicense, iosLicense).then((response) => {
//response - true/false
});
//call plugin initialisation
initialise();
captureDocument : To start capturing images, call startCapture. This function returns a promise that resolves with the JSON string having an array of the captured images file path:
captureDocument().then((resultString) => {
const result = JSON.parse(resultString);
})
.catch((error) => {
console.error('Error starting capture:', error);
});
buildPdfForLastDocumentCapture : To build a PDF from the last capture set, use buildPdfForLastCapture. This function also returns a promise that resolves with the path to the generated PDF:
buildPdfForLastCapture().then(pdfFilePath => {
console.log(`Generated PDF path: ${pdfFilePath}`);
}).catch(error => {
console.error(`PDF generation error: ${error}`);
});
captureOpticalCode : To Captures an optical code (QR code or barcode) using the device camera.Will returns a promise that resolves to the scanned code data in JSON string
captureOpticalCode().then((resultString) => {
//handle JSON data here.
const result = JSON.parse(resultString);
console.log('Scanned code : ', result.DATA);
})
.catch((error) => {
console.error('Error Scanning code:', error);
});
generateQRCode : Generates a QR code from provided data.Need to provide a data in string.in return, a promise that resolves data with Base64 data of the generated QR code image will get.
generateQRCode(qrText).then((base64String) => {
// use barcode image in Base64 data format here.
//image encoded and a PNG image in Base64 format
//setBase64Image(base64String);
Alert.alert('The QR code was generated successfully');
})
.catch((error) => {
console.error('Error generating QR code:', error);
Alert.alert('QR Generation Error', `Error: ${error.message}`);
});
generateBarcode : Generates a BAR code from provided data.Need to provide a data in string and also can specify if the BARcode with text needed.In return, a promise that resolves data with Base64 data of the generated BAR code image will get.
generateBarcode(qrText, enableText).then((base64String) => {
// use barcode image in Base64 data format here.
//image encoded and a PNG image in Base64 format
//setBase64Image(base64String);
Alert.alert('Barcode generated successfully.');
})
.catch((error) => {
console.error('Error generating QR code:', error);
Alert.alert('QR Generation Error', `Error: ${error.message}`);
});
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
A react native port for QuickCapture AI Document scanning SDK with QR & BAR code Generation and scanning
We found that @extrieve_technologies/quickcapture_react_native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.