-
Notifications
You must be signed in to change notification settings - Fork 62
NativeModules.AWSRNCognitoCredentials returns undefined #4
Comments
I have the same issue. I responded originally thinking I had fixed it, but I didn't. :( |
Hi @fearmediocrity @michaelcuneo,
|
@fearmediocrity you are importing |
I have the same issue. Android. Real device (Samsung S6). |
This fixed the issue (a bad installation more likely) for Android. [How I got there: used option 1 (my IDE is not Android Studio but I do use it) and voilà! :)] |
@appwiz I am having same issue on iOS... ...can you give a little more detail on how to set those up properly. I copied appropriate frameworks in iOS/Frameworks in my node_modules and then did xcode build which it said succeeded, but still having this issue. I would assume if build succeeded the header paths are good. I also found an initial issue in AWSCognitoCredentials.js |
Maybe my answer here can help : #24 (comment) |
Trying to use Cognito, and following the example code, I end up with:
XCode produces the following error:
[fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: Cannot read property 'initWithOptions' of undefined
A little debugging, and it appears that in AWSCogniteCredentials.js the following returned: undefined.
var cognitoClient = NativeModules.AWSRNCognitoCredentials;
The text was updated successfully, but these errors were encountered: