diff --git a/README.md b/README.md index 4ee3235..8829b7c 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,12 @@ npm install @remobile/react-native-toast --save * Look for Header Search Paths and make sure it contains both $(SRCROOT)/../../../react-native/React as recursive. ### Installation (Android) +* In `android/settings.gradle` + ```gradle ... -include ':react-native-toast' -project(':react-native-toast').projectDir = new File(settingsDir, '../node_modules/@remobile/react-native-toast/android') +include ':@remobile/react-native-toast' +project(':@remobile/react-native-toast').projectDir = new File(rootProject.projectDir, '../node_modules/@remobile/react-native-toast/android') ``` * In `android/app/build.gradle` @@ -24,11 +26,11 @@ project(':react-native-toast').projectDir = new File(settingsDir, '../node_modul ... dependencies { ... - compile project(':react-native-toast') + compile project(':@remobile/react-native-toast') } ``` -* register module (in MainApplication.java) +* register module (in android/app/src/main/java/com//MainApplication.java) ```java ......