AirLabsTeam / react-native-aws-cognito-js

React Native AWS Cognito JS SDK
Other
134 stars 19 forks source link

RNAWSCognito undefined, and computeModPow is not a function #3

Closed kangks closed 7 years ago

kangks commented 7 years ago

I encountered undefined error when evaluating RNAWSCognito.computeModPow() in AuthenticationHelper.js, resolved by removing the {},

from

const { RNAWSCognito } = NativeModules;

to

const RNAWSCognito = NativeModules;

But now I encountered RNAWSCognito.computeModPow is not a function. Which dependency do I need for iOS?

jmparsons commented 7 years ago

@kangks Did you link the project? react-native link

kangks commented 7 years ago

It works in a totally new project. Probably I screwed up something in the old project. Thanks!

kibagateaux commented 7 years ago

Running react-native link fixed this issue for me.