Skip to content

Commit

Permalink
Update README-ZH.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hzl123456 committed Jun 22, 2017
1 parent a178b0f commit 2943335
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,6 @@
![android](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/image/android.gif)
## 安装
npm install react-native-rk-pull-to-refresh --save <br>
react-native link react-native-rk-pull-to-refresh
## Android安装
* 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
```
...
dependencies {
...
// From node_modules
compile project(':react-native-rk-pull-to-refresh')
}
```
* In MainApplication.java
```
...
import com.pulltorefresh.PullToRefreshPackage; //import package
...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new PullToRefreshPackage()
);
}
...
```
## 如何使用
它内部包含了PullView,PullScrollView,PullListView和PullFlatList,如果你想使用PullFlatList的话,那么你要保持你的React Native版本在0.43及以上。并且你要添加如下的代码到FlatList(node_modules/react-native/Libraries/Lists/FlatList.js)中
```
Expand Down

0 comments on commit 2943335

Please sign in to comment.