Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prscX/react-native-download-button

React Native: Native Download Button: with pretty cool animation
https://github.com/prscX/react-native-download-button

Last synced: 3 months ago
JSON representation

React Native: Native Download Button: with pretty cool animation

Awesome Lists containing this project

README

        



PRs Welcome

ReactNative: Native Download Button (Android/iOS)

Due to time constraint, this library is deprecated and not maintained anymore, You can still use this library.

If this project has helped you out, please support us with a star 🌟

This library is ReactNative bridge around native libraries:

| **Android: [fenjuly/ArrowDownloadButton](https://github.com/fenjuly/ArrowDownloadButton)** |
| ----------------- |
| |

| **iOS: [elbryan/FFCircularProgressView](https://github.com/elbryan/FFCircularProgressView)** |
| ----------------- |
| |

## 📖 Getting started

`$ npm install react-native-download-button --save`

## **RN60 >= RNDB V1 >**

> RN60 above please use `react-native-download-button` V1 and above

- **iOS**

> **iOS Prerequisite:** Please make sure `CocoaPods` is installed on your system

- Add the following to your `Podfile` -> `ios/Podfile` and run pod update:

```
use_native_modules!

pod 'RNDownloadButton', :path => '../node_modules/react-native-download-button/ios'
```

- **Android**

## **RN60 < RNAT V1 <**

> RN60 below please use `react-native-app-tour` V.0.*

`react-native link react-native-download-button`

## 💻 Usage

```javascript
import RNDownloadButton from 'react-native-download-button';

// TODO: What to do with the module?

```

## 💡 Props

| Prop | Type | Default | Note |
| ----------------- | ---------- | ------- | ---------------------------------------------------------------------------------------------------------- |
| `startAnimation` | `bool` | | To start the downloader animation
| `progress` | `int` | | Set the progress of downloader progress bar
| `reset` | `bool` | | Reset the downloader to it's inital state
| `iOS: tintColor` | `string` | | Color for setting tint color
| `iOS: tickColor` | `string` | | Color for setting tick color
| `android: backgroundColor` | `string` | | Color for setting background color
|

## ✨ Credits

- Android lib [fenjuly/ArrowDownloadButton](https://github.com/fenjuly/ArrowDownloadButton)
- iOS lib [elbryan/FFCircularProgressView](https://github.com/elbryan/FFCircularProgressView)

## 🤔 How to contribute
Have an idea? Found a bug? Please raise to [ISSUES](https://github.com/prscX/react-native-download-button/issues).
Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.

## 💫 Where is this library used?
If you are using this library in one of your projects, add it in this list below. ✨

## 📜 License
This library is provided under the Apache License.

RNDownloadButton @ [prscX](https://github.com/prscX)

## 💖 Support my projects
I open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
* Starring and sharing the projects you like 🚀
* If you're feeling especially charitable, please follow [prscX](https://github.com/prscX) on GitHub.

Buy Me A Coffee

Thanks! ❤️


[prscX.github.io](https://prscx.github.io)


Pranav >