I installed the react-native-crypto-js v 1.0.0 im an using react-native v 0.64.1 (Typescript)
const DES = require("react-native-crypto-js").DES;
const encrypted = await DES.encrypt(value, 'KEY').toString();
I am getting the following error:
[TypeError: undefined is not an object (evaluating 'DES.encrypt')]
Any idea what is going wrong?
I installed the
react-native-crypto-jsv 1.0.0 im an usingreact-nativev 0.64.1 (Typescript)I am getting the following error:
[TypeError: undefined is not an object (evaluating 'DES.encrypt')]Any idea what is going wrong?