jerson / react-native-fast-openpgp

OpenPGP for react native made with golang for fast performance
https://www.npmjs.com/package/react-native-fast-openpgp
MIT License
45 stars 18 forks source link

Unable to encrypt or decrypt #109

Open Matthew-Oluwajuwon opened 3 months ago

Matthew-Oluwajuwon commented 3 months ago

Getting the issue too

ERROR Test failed: [TypeError: Cannot read property 'install' of null]

using version 2.7.3

const testOpenPGP = async () => { try { if (OpenPGP.encrypt) { console.log("Encrypt method is available."); const result = await OpenPGP.encrypt('Test message', '-----BEGIN PGP PUBLIC KEY BLOCK-----...'); console.log('Encryption result:', result); } else { console.error('Encrypt method is not available.'); } } catch (error) { console.error('Test failed:', error); } };

testOpenPGP();