Comments (4)
hi @klinger2709 thanks for report the issue, i released a new version with a possible fix for this,
https://www.npmjs.com/package/react-native-fast-openpgp/v/1.6.5
please let me know if doest work i havent tested yet in windows but for linux and mac seems works well
from react-native-fast-openpgp.
Hi and thank you for the quick fix. It seems to work like a charm now after the upgrade.
However It still doesn't work how i suppose it should work. I've had this exact error before creating this issue aswell, but thought it might be solved after the linking is done without errors.
I am currently using expo version 4.4.3, react 16.13.1 and react-native: https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz and testing it on an iPhone with the Expo Go App.
My code looks something like this:
import OpenPGP from "react-native-fast-openpgp";
_generateKeys = async () => {
const generated = await OpenPGP.generate({
cipher: 'aes256',
}).catch(e => console.log(e));
console.log(generated);
};
[Unhandled promise rejection: TypeError: null is not an object (evaluating 'RNFastOpenPGP.generate')]
at node_modules\react-native-fast-openpgp\lib\index.js:40:4 in OpenPGP.generate
at Screens\ChatScreen.js:11:8 in _generateKeys
at node_modules\regenerator-runtime\runtime.js:63:36 in tryCatch
at node_modules\regenerator-runtime\runtime.js:293:29 in invoke
at node_modules\regenerator-runtime\runtime.js:63:36 in tryCatch
at node_modules\regenerator-runtime\runtime.js:154:27 in invoke
at node_modules\regenerator-runtime\runtime.js:189:16 in PromiseImpl$argument_0
at node_modules\react-native\node_modules\promise\setimmediate\core.js:45:6 in tryCallTwo
at node_modules\react-native\node_modules\promise\setimmediate\core.js:200:22 in doResolve
at node_modules\react-native\node_modules\promise\setimmediate\core.js:66:11 in Promise
at node_modules\regenerator-runtime\runtime.js:188:15 in callInvokeWithMethodAndArg
at node_modules\regenerator-runtime\runtime.js:211:38 in enqueue
at node_modules\regenerator-runtime\runtime.js:238:8 in exports.async
at Screens\ChatScreen.js:8:20 in _generateKeys
...
from react-native-fast-openpgp.
@klinger2709 this library is not compatible with Expo Go App, so if you want to use it, you need to eject expo before
https://docs.expo.io/bare/customizing/
from react-native-fast-openpgp.
With the ejection it works perfectly. I just had to wrap my head around it! Thank you again for the fast responses!!
from react-native-fast-openpgp.
Related Issues (20)
- Static library only works for i86 archs HOT 2
- 'import typeof' error when running encryption example HOT 3
- Using another lib with golang HOT 1
- What is the equivalent of the web function for on this library? HOT 1
- Error: boolResponse: signature error: openpgp: unsupported feature: unknown critical signature subpacket type 33
- Unable to build for iOS on M1 HOT 4
- ReferenceError: Can't find variable: BigInt HOT 2
- Error calling functions on expo HOT 1
- Generate a public key from a private key? HOT 7
- Expose the finger print HOT 2
- Is there a standard for the formats of PGP private keys
- Got error when convertPrivateKeyToPublicKey HOT 4
- convertPrivateKeyToPublicKey() return only part of PublicKey HOT 6
- Remove jcenter() from ./android/build.gradle HOT 3
- Enhance getPublicKeyMetadata to get information about subkeys HOT 3
- TypeError: null is not an object (evaluating 'FastOpenPGPNativeModules.install') HOT 5
- openpgp: invalid data: tag byte does not have MSB set HOT 5
- Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type JavaScriptContextHolder? HOT 4
- Build failed on iOS:Undefined symbols for architecture x86_64
- JSI functions cannot be initialized in a threaded manner (race condition) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-fast-openpgp.