VirgilSecurity / react-native-virgil-crypto

BSD 3-Clause "New" or "Revised" License
48 stars 17 forks source link

NULL returned when calling virgilCrypto.generateKeys #36

Open conan19842002 opened 4 years ago

conan19842002 commented 4 years ago

I'm using vilgil-crypto for react-native and got this error when generating keypair: [Unhandled promise rejection: TypeError: null is not an object (evaluating 'RNVirgilCrypto.generateKeyPair')]

code to reproduce:

const encryptionKeypair =  virgilCrypto.generateKeys();
console.log("key: " + encryptionKeypair);

Environment

react-native-cli: 2.0.1
react-native: 0.61.4
Abramovick commented 4 years ago

Getting the same error. @conan19842002 Did you manage to fix it?

noook commented 3 years ago

Error still present.

chrisd1997 commented 3 years ago

Did you run pod install in the ios folder or npx pod-install?

davidbiller commented 3 years ago

@chrisd1997 I guess this is a android link error.

npx react-native link react-native-virgil-crypto

info Linking "react-native-virgil-crypto" iOS dependency error Linking "react-native-virgil-crypto" failed. Run CLI with --verbose flag for more details.