@vali98/react-native-fs
v0.2.1
Published
Download folder access for react-native
Downloads
81
Readme
react-native-local-download
Simple download folder access for react-native
Like my projects? Support me on ko-fi!
The purpose of this package is as an easy method to downloading.
- Uses MediaStorage for Android Download folder access
- Uses Sharing for iOS
This package is intended to be used with other file-system packages such as expo-file-system or react-native-fs
This was not tested on lower Android SDK API's, might not working on Android 9 and below.
Installation
npm install @vali98/react-native-fsUsage
import { LocalDownload } from './NativeLocalDownload'
// Use simply add the path of the internal app resource to be copied to downloads
localDownload('/path/to/resource')
// Use a callback if you want to handle `never_ask_again` permissions on Android
localDownload('path/to/resource', () => console.log('Uh oh!'))Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
