Skip to content

React native typescript project, getting the following error [TypeError: undefined is not an object (evaluating 'DES.encrypt')] #18

@Eliajn

Description

@Eliajn

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions