import { NativeModules } from 'react-native'; const implementation = { derive(password: string, salt: string, iterations: number, keySize: number, hash: 'sha-1' | 'sha-256' | 'sha-512'): Promise { return NativeModules.Pbkdf2.derive(password, salt, iterations, keySize, hash); } }; export default implementation;