Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hzl123456 committed Jun 20, 2017
1 parent 41e7d60 commit 457c0da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ A pull to refresh component for react-native, same api on both android and ios,a
npm install react-native-rk-pull-to-refresh --save <br>
react-native link react-native-rk-pull-to-refresh
## Installation Android
`.`In android/settings.gradle
* In android/settings.gradle
```
...
include ':react-native-rk-pull-to-refresh'
project(':react-native-rk-pull-to-refresh').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-rk-pull-to-refresh/android')
```
`.`In android/app/build.gradle
* In android/app/build.gradle
```
...
dependencies {
Expand All @@ -20,7 +20,7 @@ dependencies {
compile project(':react-native-rk-pull-to-refresh')
}
```
`.`In MainApplication.java
* In MainApplication.java
```
...
import com.pulltorefresh.PullToRefreshPackage; //import package
Expand Down Expand Up @@ -200,7 +200,7 @@ topIndicatorHeight |number |yes | |top pulling render header,when topIndicatorRe
onPullStateChangeHeight |func|yes| |when pulling, this function will be called
onPushing|func|yes| |when pulling, this function will be called
## Method
beginRefresh():force begin pull down refresh
beginRefresh():force begin pull down refresh <br>
resolveHandler():end pull down refresh


Expand Down

0 comments on commit 457c0da

Please sign in to comment.