react-native-aws-cognito-js
react-native-aws-cognito-js copied to clipboard
Access AWS resources (S3 / DynamoDB) by CognitoIdentityCredentials
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!
@samuel-hkust add aws-sdk
to your project.