react-native-aws-cognito-js icon indicating copy to clipboard operation
react-native-aws-cognito-js copied to clipboard

Access AWS resources (S3 / DynamoDB) by CognitoIdentityCredentials

Open sammeowww opened this issue 7 years ago • 1 comments

Thanks for this great tool! It's really helpful!

Now I'm facing another problem, I'm attempting to follow this guide to access S3 resources

https://aws.amazon.com/blogs/developer/react-native-support-in-the-aws-sdk-for-javascript/

import {
  AWS,
  TransferUtility,
  Config,
  CognitoIdentityCredentials
} from "aws-sdk/dist/aws-sdk-react-native";

......

const s3 = new AWS.S3({
  region: 'us-east-1',
  credentials: Config.credentials
});

However it raised error message undefined is not an object (evaluating 'new_awsSdkReactNative.AWS.S3')

Shall I use other method to import AWS resources? Thank you!

sammeowww avatar Jul 17 '17 08:07 sammeowww

@samuel-hkust add aws-sdk to your project.

jmparsons avatar Sep 15 '17 17:09 jmparsons