Update README.md
This commit is contained in:
parent
f238dd3734
commit
84f1701ea1
|
@ -4,18 +4,16 @@ React Native wrappers for https://github.com/afollestad/material-dialogs
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Install the npm package 'react-native-dialogs'. Inside your React Native project, run :
|
Install the npm package 'react-native-dialogs'. Inside your React Native project, run ([example](https://github.com/aakashns/react-native-dialogs-example/commit/e6b83bf3d2238cf7e4ec3688519f38b2544ccad5)):
|
||||||
```bash
|
```bash
|
||||||
npm install --save react-native-dialogs
|
npm install --save react-native-dialogs
|
||||||
```
|
```
|
||||||
Changes to your `package.json` should look like [this](https://github.com/aakashns/react-native-dialogs-example/commit/e6b83bf3d2238cf7e4ec3688519f38b2544ccad5).
|
|
||||||
|
|
||||||
In `android/settings.gradle`, remove the line `include ':app'` and add the following lines :
|
In `android/settings.gradle`, remove the line `include ':app'` and add the following lines ([example](https://github.com/aakashns/react-native-dialogs-example/commit/32b4159725601e0ea17e140f0a9b62161d567804)):
|
||||||
```
|
```
|
||||||
include ':app', ':react-native-dialogs'
|
include ':app', ':react-native-dialogs'
|
||||||
project(':react-native-dialogs').projectDir = file('../node_modules/react-native-dialogs/android')
|
project(':react-native-dialogs').projectDir = file('../node_modules/react-native-dialogs/android')
|
||||||
```
|
```
|
||||||
The changes should look like [this](https://github.com/aakashns/react-native-dialogs-example/commit/32b4159725601e0ea17e140f0a9b62161d567804)
|
|
||||||
**NOTE** : If you have included other libraries in your project, the `include` line will contain the other dependencies too, apart from `':app'` and `':react-native-dialogs'`
|
**NOTE** : If you have included other libraries in your project, the `include` line will contain the other dependencies too, apart from `':app'` and `':react-native-dialogs'`
|
||||||
|
|
||||||
In `android/app/build.gradle`, add a dependency to `':react-native-dialogs'` and URL of the Jitpack maven repository (to download the library https://github.com/afollestad/material-dialogs) :
|
In `android/app/build.gradle`, add a dependency to `':react-native-dialogs'` and URL of the Jitpack maven repository (to download the library https://github.com/afollestad/material-dialogs) :
|
||||||
|
@ -47,6 +45,6 @@ public class MainActivity extends FragmentActivity implements DefaultHardwareBac
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
```
|
```
|
||||||
See [this changelog](https://github.com/aakashns/react-native-dialogs-example/commit/52cac27756963bcd2f4fdcd039e1a78028bb0abd) for reference
|
See [this changelog](https://github.com/aakashns/react-native-dialogs-example/commit/52cac27756963bcd2f4fdcd039e1a78028bb0abd) for reference.
|
||||||
|
|
||||||
Now you're finally ready to start using module in your React Native application. See [this changelog](https://github.com/aakashns/react-native-dialogs-example/commit/2d8e02c22275479d2fbbb89f99dcb846834bec9d) for an example that uses `DialogAndroid`.
|
Now you're finally ready to start using module in your React Native application. See [this changelog](https://github.com/aakashns/react-native-dialogs-example/commit/2d8e02c22275479d2fbbb89f99dcb846834bec9d) for an example that uses `DialogAndroid`.
|
||||||
|
|
Loading…
Reference in New Issue