# react-native-dialog-progress

> [![npm](https://img.shields.io/npm/dm/localeval.svg)](https://github.com/cleandersonlobo/react-native-dialog-progress) [![npm](https://img.shields.io/npm/dt/express.svg)](https://github.com/cleandersonlobo/react-native-dialog-progress) [![npm](https://img

Latest version **1.0.2** (published 2017-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-dialog-progress
pnpm add react-native-dialog-progress
yarn add react-native-dialog-progress
bun add react-native-dialog-progress
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-09-20 |
| First published | 2017-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Cleanderson Lobo http://cleandersonlobo.com |
| Maintainers | cleandersonlobo |
| Keywords | react-native, android, library, dialog |

## Links

- npm: https://www.npmjs.com/package/react-native-dialog-progress
- Repository: https://github.com/cleandersonlobo/react-native-dialog-progress
- Issues: https://github.com/cleandersonlobo/react-native-dialog-progress/issues
- npm.io page: https://npm.io/package/react-native-dialog-progress

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads
- [react-native-modal-translucent-axton](https://npm.io/package/react-native-modal-translucent-axton.md) — 4 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-09-20
- 1.0.1 — 2017-09-20
- 1.0.0 — 2017-09-19

## README

## react-native-dialog-progress
[![npm](https://img.shields.io/npm/dm/localeval.svg)](https://github.com/cleandersonlobo/react-native-dialog-progress)
[![npm](https://img.shields.io/npm/dt/express.svg)](https://github.com/cleandersonlobo/react-native-dialog-progress)
[![npm](https://img.shields.io/npm/v/npm.svg)](https://npmjs.org/package/react-native-dialog-progress)
[![npm](https://img.shields.io/npm/l/react-native-smart-badge.svg)](https://github.com/cleandersonlobo/react-native-dialog-progress/blob/master/LICENSE)

## Installation 

First you need to install react-native-dialog:

```javascript
$ npm install react-native-dialog-progress --save
```

### Installation (Android)

## React Native Link 

```javascript
$ react-native link react-native-dialog-progress
```

## Manually
```gradle
...
include ':react-native-dialog-progress'
project(':react-native-dialog-progress').projectDir = new File(settingsDir, '../node_modules/react-native-dialog-progress/android')
```
* In `android/app/build.gradle`

```gradle
...
dependencies {
    ...
    compile project(':react-native-dialog-progress')
}
```

* register module (in MainApplication.java)

```java
......
import com.dialogprogress.DialogProgressPackage;  // <--- import

......

@Override
protected List<ReactPackage> getPackages() {
   ......
   new DialogProgressPackage(),            // <------ add here
   ......
}

```
## Usage

## Show DialogProgress

### Example
```javascript
    import DialogProgress from 'react-native-dialog-progress'
    const options = {
        title:"Loading",
        message:"This is a message!",
        isCancelable:true
    }
    DialogProgress.show(options)
```

![](https://raw.githubusercontent.com/cleandersonlobo/react-native-dialog-progress/master/example.gif)

## Options 
 Name | Description | Default/Required | Type
------|-------------|----------|-----------
title | text for the dialog title | undefined | string
message | text for the dialog message | undefined | string
isCancelable | true if the dialog is cancelable, false otherwise | false | bool

## Hide DialogProgress

### Example
```javascript 
    import DialogProgress from 'react-native-dialog-progress'

    DialogProgress.hide()
```

### Thanks

# License
- [MIT](LICENSE)

---
_Source: https://npm.io/package/react-native-dialog-progress · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
