Commit 76f4768f3d40574965ec5ba75e56e2a3e1804278

Authored by 张志伟
1 parent 6f0384a2

调整redeme

README.md
1   -# react-native-rk-pull-to-refresh(ios/android)
2   -[中文说明](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/README-ZH.md) <br><br>
  1 +# react-native-pull-to-refresh(ios/android)
3 2 A pull to refresh component for react-native, same api on both android and ios,also you can design you owner pull style for this component.you can use it for most of the component in react-native such as view,scrollview,listview and flatlist.
4 3 ## Preview
5   -![ios](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/image/ios.gif) <br><br>
6   -![android](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/image/android.gif)
  4 +![ios](https://gitlab.feewee.cn/sdk/react-native-pull-to-refresh/blob/master/image/ios.gif) <br><br>
  5 +![android](https://gitlab.feewee.cn/sdk/react-native-pull-to-refresh/blob/master/image/android.gif)
7 6 ## Installation
8   -npm install react-native-rk-pull-to-refresh --save <br>
  7 +npm install @cqfw/react-native-pull-to-refresh --save <br>
9 8 ## How to use
10 9 it contains PullView,PullScrollView,PullListView and PullFlatList.if you want to use PullFlatList,you should use this component whith React Native 0.43 and newer.then you must add this to FlatList(node_modules/react-native/Libraries/Lists/FlatList.js)
11 10 ```
... ... @@ -27,7 +26,7 @@ and add this to VirtualizedList(node_modules/react-native/Libraries/Lists/Virtua
27 26 ```
28 27 import React, {PureComponent} from 'react';
29 28 import {ListView, View, Text, Dimensions} from 'react-native';
30   -import {PullListView} from 'react-native-rk-pull-to-refresh'
  29 +import {PullListView} from '@cqfw/react-native-pull-to-refresh'
31 30  
32 31 const width = Dimensions.get('window').width
33 32  
... ... @@ -83,7 +82,7 @@ export default class PullListViewDemo extends PureComponent {
83 82 ```
84 83 import React, {PureComponent} from 'react';
85 84 import {View, Text, Dimensions,StyleSheet,ActivityIndicator} from 'react-native';
86   -import {PullView} from 'react-native-rk-pull-to-refresh'
  85 +import {PullView} from '@cqfw/react-native-pull-to-refresh'
87 86  
88 87 const width = Dimensions.get('window').width
89 88 const topIndicatorHeight = 50
... ...
image/android.gif 0 → 100644

1.43 MB

image/ios.gif 0 → 100644

638 KB

package.json
... ... @@ -4,6 +4,8 @@
4 4 "description": "a pull to refresh component for react-native, same api on both android and ios.",
5 5 "main": "index.js",
6 6 "scripts": {
  7 + "npm:publish": "npm --registry https://registry.npmjs.org/ --access public publish",
  8 + "npm:sync": "curl -i https://npm.taobao.org/sync/@cqfw/react-native-amap3d",
7 9 "test": "echo \"Error: no test specified\" && exit 1;"
8 10 },
9 11 "repository": {
... ...