react-native-kav-easyscanner
v0.0.0
Published
The basic function for easy scanning mode
Readme
KASPERSKY EASY SCANNER FOR REACT-NATIVE
This modules is written as a bridge from the native module written in Java and port as an npm package
This module is React Native Native Module, for RN >0.71 the package will automatically linked to your project
To start using the code, install it as a package
npm install react-native-kav-easyscanner (Note: If the requirement of your npm package is stricted, I suggest adding --force to the installer: npm install react-native-kav-easyscanner --force | npm i react-native-kav-easyscanner -f)
How to use it?
This package is using the Kaspersky Easy Scanner on your device. It should be noted that this module is natively written on Java.
Using callback / arrow asynchronize function to call the scanner as a result for usage
Switching between mode
scanType: ScanType (string)
The EasyScanner provide a some variety of scanning mode, switching between these mode
|Type| Description |
|----|------------|
|Basic|Basic scan, quick glimpse on all the file
|Recommend|Checking all the thread from the device, check root and more
|Light| This mode provide a quick scan but with more functionality than the Basic mode
|LightPlus| Same as light with more features |
|Full| Provide a completed scan for the device|
Usage sample:
import kasperskyEasyScanner from 'react-native-kav-easyscanner';
const onPress = async () => {
try {
const result = await kasperskyEasyScanner(scanType);
setIsResult(result);
} catch (error) {
setError(true);
console.error(error);
}
};These are the example of how to use the code in the project
