From 76f4768f3d40574965ec5ba75e56e2a3e1804278 Mon Sep 17 00:00:00 2001 From: Kurisu Date: Sun, 29 Jan 2023 16:59:12 +0800 Subject: [PATCH] 调整redeme --- README.md | 13 ++++++------- image/android.gif | Bin 0 -> 1504651 bytes image/ios.gif | Bin 0 -> 653204 bytes package.json | 2 ++ 4 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 image/android.gif create mode 100644 image/ios.gif 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 Binary files /dev/null and b/image/android.gif differ diff --git a/image/ios.gif b/image/ios.gif new file mode 100644 index 0000000..0c45993 Binary files /dev/null and b/image/ios.gif differ 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": { -- libgit2 0.22.2