
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-aws3-manager
Advanced tools
Pure JavaScript react native library for uploading, deleting, and retrieving from AWS S3
A React Native library for managing uploads, deletions, and retrievals from AWS S3 with enhanced features. Inspired by the react-native-aws3 package.
react-native-aws3-manager offers several advantages over the react-native-aws3 package:
react-native-aws3, which is no longer maintained, react-native-aws3-manager is actively maintained and regularly updated.crypto-js for added security features.react-native-aws3-manager provides an easy-to-use interface for uploading, deleting, and retrieving files from AWS S3 in React Native applications. This library leverages AWS SDK and offers additional features and security using crypto-js.
To install the library and its dependencies, run:
npm install react-native-aws3-manager crypto-js aws-sdk
To install the library and its dependencies, run:
yarn add react-native-aws3-manager crypto-js aws-sdk
To upload a file to AWS S3, use the put method provided by the library.
import { RNS3 } from "react-native-aws3-manager";
const file = {
uri: "path-to-your-file",
name: "file-name.jpg",
type: "image/jpeg",
};
const options = {
bucket: "your-bucket",
region: "your-region",
accessKey: "your-access-key",
secretKey: "your-secret-key",
successActionStatus: 201,
};
RNS3.put(file, options)
.then((response) => {
if (response.status !== 201) {
throw new Error("Failed to upload image to S3");
}
console.log("Successfully uploaded file to S3:", response.body);
})
.catch((error) => {
console.error("Error uploading file to S3:", error);
});
To delete a file from AWS S3, use the delete method provided by the library.
import { RNS3 } from "react-native-aws3-manager";
const options = {
bucket: "your-bucket",
region: "your-region",
accessKey: "your-access-key",
secretKey: "your-secret-key",
};
RNS3.delete("uploads/file-name.jpg", options)
.then((response) => {
if (response.status !== 204) {
throw new Error("Failed to delete file from S3");
}
console.log("Successfully deleted file from S3");
})
.catch((error) => {
console.error("Error deleting file from S3:", error);
});
To retrieve a file from AWS S3, use the get method provided by the library.
import { RNS3 } from "react-native-aws3-manager";
const options = {
bucket: "your-bucket",
region: "your-region",
accessKey: "your-access-key",
secretKey: "your-secret-key",
};
RNS3.get("uploads/file-name.jpg", options)
.then((response) => {
if (response.status !== 200) {
throw new Error("Failed to retrieve file from S3");
}
console.log("Successfully retrieved file from S3:", response.body);
})
.catch((error) => {
console.error("Error retrieving file from S3:", error);
});
Uploads a file to AWS S3.
file: Object containing uri, name, and type of the file.
options: Object containing bucket, region, accessKey, secretKey, keyPrefix, and successActionStatus.
key: String representing the key of the file to retrieve.
options: Object containing bucket, region, accessKey, and secretKey.
key: String representing the key of the file to retrieve.
options: Object containing bucket, region, accessKey, and secretKey.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any bugs, improvements, or new features.
FAQs
Pure JavaScript react native library for uploading, deleting, and retrieving from AWS S3
The npm package react-native-aws3-manager receives a total of 0 weekly downloads. As such, react-native-aws3-manager popularity was classified as not popular.
We found that react-native-aws3-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.