Merge pull request #77 from BrianSo/fix-readme-manual-installation

[README.md] Fix manual installation
This commit is contained in:
Aakash N S 2018-03-16 08:44:13 +05:30 committed by GitHub
commit d61de75157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -51,6 +51,16 @@ include ':react-native-dialogs'
project(':react-native-dialogs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-dialogs/android')
```
update your ```app.gradle``` and add:
```
dependencies {
compile project(':react-native-dialogs') // <-- Add this line
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
//...
}
```
Next, you need to change the `MainApplication` of your app to register `ReactNativeDialogsPackage` :
```java
// ... Other imports