Hello!
Thank you for your job! But I have a typing issue with version 1.3.10
When I do:
import Aes from 'react-native-aes-crypto'
I have the following issue:
File '/node_modules/react-native-aes-crypto/index.d.ts' is not a module
declare module '@tectiv3/react-native-aes-crypto' {
function pbkdf2(password: string, salt: string, cost: number, length: number): Promise;
function encrypt(text: string, key: string, iv: string): Promise;
function decrypt(ciphertext: string, key: string, iv: string): Promise;
function hmac256(ciphertext: string, key: string): Promise;
function randomKey(length: number): Promise;
function sha1(text: string): Promise;
function sha256(text: string): Promise;
function sha512(text: string): Promise;
}
needs to be
declare module 'react-native-aes-crypto' {
function pbkdf2(password: string, salt: string, cost: number, length: number): Promise;
function encrypt(text: string, key: string, iv: string): Promise;
function decrypt(ciphertext: string, key: string, iv: string): Promise;
function hmac256(ciphertext: string, key: string): Promise;
function randomKey(length: number): Promise;
function sha1(text: string): Promise;
function sha256(text: string): Promise;
function sha512(text: string): Promise;
}
after bundled
Hello.
Could you help me fix this bug? I also can't import this library