React Native
React Native
Compute CRC32 of a File
Calculates the CRC32 of a file's contents and returns the 32-bit CRC as a hex string.Chilkat React Native Downloads
import { ZipCrc } from '@chilkat/react-native'
async function chilkatExample() {
const zipCrc = new ZipCrc();
// Use a relative for absolute path to the file..
const crc = await zipCrc.fileCrcAsync('qa_data/hamlet.xml');
const hexStr = zipCrc.toHex(crc);
console.log(hexStr);
}