[](https://github.com/cleandersonlobo/react-native-dialog-progress) [](https://github.com/cleandersonlobo/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 getPackages() {
......
new DialogProgressPackage(), // <------ add here
......
}
`
Usage
Show DialogProgress
$3
`javascript
import DialogProgress from 'react-native-dialog-progress'
const options = {
title:"Loading",
message:"This is a message!",
isCancelable:true
}
DialogProgress.show(options)
`
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 | boolHide DialogProgress
$3
`javascript
import DialogProgress from 'react-native-dialog-progress' DialogProgress.hide()
``