Skip to content

Access AWS resources (S3 / DynamoDB) by CognitoIdentityCredentials #14

@sammeowww

Description

@sammeowww

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions