React Native
React Native
Example: Crypt2.CrcFile method
Demonstrates how to call the CrcFile method.Chilkat React Native Downloads
import { Crypt2 } from '@chilkat/react-native'
async function chilkatExample() {
const crypt = new Crypt2();
const filePath = 'c:/temp/someFile.dat';
const crc32 = await crypt.crcFileAsync('crc-32', filePath);
console.log(crc32);
const crc8 = await crypt.crcFileAsync('crc8', filePath);
console.log(crc8);
}