Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
react-native-ios-files-app-save
Advanced tools
react-native-ios-files-app-save is a React Native package that allows you to easily download any file from the internet and save it to your Files app on Android and iOS devices.
react-native-ios-files-app-save is a React Native package that allows you to easily download any file from the internet and save it to your Files app on Android and iOS devices.
To install react-native-ios-files-app-save, use npm or yarn
npm install react-native-ios-files-app-save
yarn add react-native-ios-files-app-save
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
<key>UIFileSharingEnabled</key>
<true/>
To use react-native-ios-files-app-save simply import the startDownloadAppSave
function and call it with the URL of the file you want to download:
import { startDownloadAppSave } from 'react-native-ios-files-app-save';
export default function App() {
const demoDownload = () => {
if (!hasPermission) {
//* Handle Permission
return;
}
let options: FileSaveOptions = {
url: "YOUR URL,
fileName: "name.pdf,
isBase64: false
}
startDownloadAppSave(options).then((res) => {
const fileSaveSuccess = res as FileSaveSuccess;
console.log(fileSaveSuccess);
console.log(fileSaveSuccess.message);
}).catch((error) => {
console.log("error", error);
})
};
return (
<View style={styles.container}>
<Text onPress={demoDownload}>{'Start Download'}</Text>
</View>
);
}
Contributions are welcome! If you have any issues, ideas, or suggestions for react-native-ios-files-app-save, feel free to open an issue or submit a pull request on Github.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
If you find my work useful, please consider supporting me by buying me a coffee!
Your support helps me continue to develop and maintain this package.
Thank you!
FAQs
react-native-ios-files-app-save is a React Native package that allows you to easily download any file from the internet and save it to your Files app on Android and iOS devices.
The npm package react-native-ios-files-app-save receives a total of 25 weekly downloads. As such, react-native-ios-files-app-save popularity was classified as not popular.
We found that react-native-ios-files-app-save demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.