Comments (9)
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.
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.
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.
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.
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.
Never mind - I had my Linked Frameworks and Libraries messed up.
from react-native-aws-cognito-js.
@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.
@jmparsons I wil try it today and reply back.
from react-native-aws-cognito-js.
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)
- Usage question HOT 3
- reading cognitoUser from MemoryStorage HOT 2
- facebook token, now whats next HOT 19
- Access AWS resources (S3 / DynamoDB) by CognitoIdentityCredentials HOT 1
- TypeError: Cannot read property 'computeModPow' of undefined HOT 5
- Broken on RN 0.47 update HOT 5
- React 0.47 compatibility HOT 2
- Compatibility with RN0.47+ HOT 1
- undefined is not an object(evaluating 'RNAWSCognito.computeModPow') HOT 9
- _awsSdkReactNative.util.crypto.lib.randomBytes is not a function HOT 11
- Custom attributes missing in the getUserAttributes response - AWS cognito HOT 2
- awsSdkReactNative.util.crypto.lib.randomBytes is undefined
- Backporting for old version of RN. HOT 2
- future: use aws supported library HOT 1
- error: a type with the same simple name is already defined by the single-type-import of RNAWSCognitoPackage HOT 2
- undefined is not a function evaluating 'callback.newPasswordReuired(userAttributes,requiredAttributes)')
- No token recieve in android.
- The 1st example with mapping doesn't work HOT 2
- cognitoUser/userPool.storage.sync is not a function HOT 4
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-aws-cognito-js.