Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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/<app_name>/MainApplication.java)

```java
......
Expand Down