diff --git a/README.md b/README.md index eec1761..e5c2220 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ -# react-native-rk-pull-to-refresh(ios/android) -[中文说明](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/README-ZH.md)

+# react-native-pull-to-refresh(ios/android) 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. ## Preview -![ios](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/image/ios.gif)

-![android](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/image/android.gif) +![ios](https://gitlab.feewee.cn/sdk/react-native-pull-to-refresh/blob/master/image/ios.gif)

+![android](https://gitlab.feewee.cn/sdk/react-native-pull-to-refresh/blob/master/image/android.gif) ## Installation -npm install react-native-rk-pull-to-refresh --save
+npm install @cqfw/react-native-pull-to-refresh --save
## How to use 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) ``` @@ -27,7 +26,7 @@ and add this to VirtualizedList(node_modules/react-native/Libraries/Lists/Virtua ``` import React, {PureComponent} from 'react'; import {ListView, View, Text, Dimensions} from 'react-native'; -import {PullListView} from 'react-native-rk-pull-to-refresh' +import {PullListView} from '@cqfw/react-native-pull-to-refresh' const width = Dimensions.get('window').width @@ -83,7 +82,7 @@ export default class PullListViewDemo extends PureComponent { ``` import React, {PureComponent} from 'react'; import {View, Text, Dimensions,StyleSheet,ActivityIndicator} from 'react-native'; -import {PullView} from 'react-native-rk-pull-to-refresh' +import {PullView} from '@cqfw/react-native-pull-to-refresh' const width = Dimensions.get('window').width const topIndicatorHeight = 50 diff --git a/image/android.gif b/image/android.gif new file mode 100644 index 0000000..27c0edf --- /dev/null +++ b/image/android.gif diff --git a/image/ios.gif b/image/ios.gif new file mode 100644 index 0000000..0c45993 --- /dev/null +++ b/image/ios.gif diff --git a/package.json b/package.json index 475f2cc..8eb8cb3 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,8 @@ "description": "a pull to refresh component for react-native, same api on both android and ios.", "main": "index.js", "scripts": { + "npm:publish": "npm --registry https://registry.npmjs.org/ --access public publish", + "npm:sync": "curl -i https://npm.taobao.org/sync/@cqfw/react-native-amap3d", "test": "echo \"Error: no test specified\" && exit 1;" }, "repository": {