Skip to content

Commit 877caac

Browse files
committed
Update README.md
1 parent ee0a6ea commit 877caac

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ rnpm link
2525

2626
#### Android
2727

28-
In Android, Add it in your root build.gradle at the end of repositories:
28+
In Android, Add it in your **root** `build.gradle` at the end of repositories:
2929

3030
```groovy
3131
allprojects {
@@ -36,10 +36,32 @@ allprojects {
3636
}
3737
```
3838

39-
Please provide `CustomTabsPackage` in your Application class.
39+
And, provide `CustomTabsPackage` in your Application class.
4040

41-
* [example/MainApplication.java](https://github.com/droibit/react-native-custom-tabs/blob/develop/example/android/app/src/main/java/com/github/droibit/android/reactnative/customtabs/example/MainApplication.java#L28)
42-
* [Register the Module](https://facebook.github.io/react-native/docs/native-modules-android.html#register-the-module)
41+
```java
42+
@Override
43+
protected List<ReactPackage> getPackages() {
44+
return Arrays.asList(
45+
...,
46+
new CustomTabsPackage()
47+
);
48+
}
49+
```
50+
51+
If you use version `0.1.5` or higher, change the **app** `build.gradle`.
52+
53+
```groovy
54+
android {
55+
...
56+
compileSdkVersion 25
57+
buildToolsVersion "25.0.1"
58+
}
59+
60+
dependencies {
61+
...
62+
compile "com.android.support:appcompat-v7:25.0.1"
63+
}
64+
```
4365

4466
## Usage
4567

0 commit comments

Comments
 (0)