The basic function for easy scanning mode
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
$3
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);
}
};
``