Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
samin committed Jul 22, 2016
1 parent ca6ef16 commit c1931bb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ $ npm install --save react-native-android-sms-listener

*android/settings.gradle*
```Gradle
include ':ReactNativeAndroidSmsListener'
include ':react-native-android-sms-listener'
project(':ReactNativeAndroidSmsListener').projectDir = new File(
project(':react-native-android-sms-listener').projectDir = new File(
rootProject.projectDir,
'../node_modules/react-native-android-sms-listener/android'
)
Expand All @@ -79,22 +79,22 @@ project(':ReactNativeAndroidSmsListener').projectDir = new File(
*android/app/build.gradle*
```Gradle
dependencies {
compile project(':ReactNativeAndroidSmsListener')
compile project(':react-native-android-sms-listener')
// (...)
}
```

*MainActivity.java*
*MainApplication.java*
```Java
import com.centaurwarchief.smslistener.SmsListener;
import com.centaurwarchief.smslistener.SmsListenerPackage;
```

```Java
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new SmsListener(this)
new SmsListenerPackage()
// (...)
);
}
Expand Down

0 comments on commit c1931bb

Please sign in to comment.