react-native-dialog-progress
Installation
First you need to install react-native-dialog:
$ npm install react-native-dialog-progress --save
Installation (Android)
React Native Link
$ react-native link react-native-dialog-progress
Manually
...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
...dependencies { ... compile project(':react-native-dialog-progress')}
- register module (in MainApplication.java)
...... // <--- import ...... @Overrideprotected List<ReactPackage> { ...... new DialogProgressPackage(), // <------ add here ......}
Usage
Show DialogProgress
Example
const options = title:"Loading" message:"This is a message!" isCancelable:true DialogProgress
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
DialogProgress