Code Monkey home page Code Monkey logo

Comments (4)

jerson avatar jerson commented on May 19, 2024

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.

katerlol avatar katerlol commented on May 19, 2024

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.

jerson avatar jerson commented on May 19, 2024

@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.

katerlol avatar katerlol commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.