Giter Club home page Giter Club logo

Comments (9)

ramki1979 avatar ramki1979 commented on June 11, 2024 3

I am using React-Native-Navigation from Wix, so I have to add the Package list myself in the MainApplication.java
And I somehow missed added the

new RNAWSCognitoPackage()

This might be the problem.
As @jmparsons mentioned to relook at react-native link should have solved my problem. But some how I didn't find the packagelist missing this library.

I am only able to find after comparing Example project with mine and wondering how I missed that.

Thanks @jmparsons @gastonconcilio for quick reply.

from react-native-aws-cognito-js.

Twitchkidd avatar Twitchkidd commented on June 11, 2024 1

I had this same problem and what I missed that I had to do was run pod install after react-native link <PACKAGE_NAME> as that had added pod 'RNAWSCognito', :path => '../node_modules/amazon-cognito-identity-js' to Podfile automatically, but I hadn't installed it, and sure enough: Installing JKBigInteger2 (0.0.5) Installing RNAWSCognito (1.29.0) showed up in my terminal and now I've got user authentication flow on iOS and Android. Yay!

from react-native-aws-cognito-js.

jmparsons avatar jmparsons commented on June 11, 2024

I would just make sure to run react-native link to make sure the android gradle file is set properly.

from react-native-aws-cognito-js.

ramki1979 avatar ramki1979 commented on June 11, 2024

I have used react-native link, all other functions related to AWS userpool of the lib are working in android.

from react-native-aws-cognito-js.

gastonconcilio avatar gastonconcilio commented on June 11, 2024

I am having the same issue for iOS, only seen it when running authenticateUser so far.

TypeError: Cannot read property 'computeModPow' of undefined

from react-native-aws-cognito-js.

gastonconcilio avatar gastonconcilio commented on June 11, 2024

Never mind - I had my Linked Frameworks and Libraries messed up.

from react-native-aws-cognito-js.

jmparsons avatar jmparsons commented on June 11, 2024

@ramki1979 Please try running the example Android project. If that works on your side, then I'd just say double check your version, wipe node modules etc. Let me know if it works for you.

from react-native-aws-cognito-js.

ramki1979 avatar ramki1979 commented on June 11, 2024

@jmparsons I wil try it today and reply back.

from react-native-aws-cognito-js.

chinloongtan avatar chinloongtan commented on June 11, 2024

I encountered this issue as well.
What I did was drag RNAWSCognito.xcodeproj to my xcode project libraries and add libRNAWSCognito.a to Build Phases. (Basically manually linking it). Hope this information helps someone in the future.

from react-native-aws-cognito-js.

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.