{"id":24667236,"url":"https://github.com/react-native-studio/react-native-smartrefreshlayout","last_synced_at":"2025-10-11T14:38:54.526Z","repository":{"id":30229796,"uuid":"124333810","full_name":"react-native-studio/react-native-SmartRefreshLayout","owner":"react-native-studio","description":"基于android SmartRefreshLayout https://github.com/scwang90/SmartRefreshLayout 开发的插件，可提供类似ios的弹性刷新","archived":false,"fork":false,"pushed_at":"2022-12-08T21:42:48.000Z","size":6840,"stargazers_count":267,"open_issues_count":38,"forks_count":58,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-13T06:58:22.760Z","etag":null,"topics":["pull","react","react-native","refresh","refreshcontrol","refreshlayout","smart","smartrefreshlayout"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-native-studio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-08T03:54:03.000Z","updated_at":"2025-07-22T01:35:12.000Z","dependencies_parsed_at":"2023-01-14T16:45:31.395Z","dependency_job_id":null,"html_url":"https://github.com/react-native-studio/react-native-SmartRefreshLayout","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/react-native-studio/react-native-SmartRefreshLayout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-native-studio%2Freact-native-SmartRefreshLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-native-studio%2Freact-native-SmartRefreshLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-native-studio%2Freact-native-SmartRefreshLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-native-studio%2Freact-native-SmartRefreshLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-native-studio","download_url":"https://codeload.github.com/react-native-studio/react-native-SmartRefreshLayout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-native-studio%2Freact-native-SmartRefreshLayout/sbom","scorecard":{"id":765654,"data":{"date":"2025-08-11","repo":{"name":"github.com/react-native-studio/react-native-SmartRefreshLayout","commit":"c14a234a4b57b42433cb08a85a6366e8b46b09e5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: Example/android/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"85 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-c6rq-rjc2-86v2","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3","Warn: Project is vulnerable to: GHSA-f9cm-qmx5-m98h","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-gwg9-rgvj-4h5j","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-4cpg-3vgw-4877","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-rxrc-rgv4-jpvx","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-gff7-g5r8-mg8m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-5v72-xg48-5rpm","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T00:41:52.698Z","repository_id":30229796,"created_at":"2025-08-23T00:41:52.698Z","updated_at":"2025-08-23T00:41:52.698Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007456,"owners_count":26084313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pull","react","react-native","refresh","refreshcontrol","refreshlayout","smart","smartrefreshlayout"],"created_at":"2025-01-26T08:16:19.983Z","updated_at":"2025-10-11T14:38:54.490Z","avatar_url":"https://github.com/react-native-studio.png","language":"Java","readme":"# React Native SmartRefreshLayout  [![npm version](https://badge.fury.io/js/react-native-smartrefreshlayout.svg)](https://badge.fury.io/js/react-native-smartrefreshlayout)\n\n\u003eReact-Native-SmartRefreshLayout是基于[Android SmartRefreshLayout](https://github.com/scwang90/SmartRefreshLayout) 开发的插件\n\u003e,\u003cbr\u003e可提供类似ios的弹性刷新,该插件可完全使用React Native进行自定义\n\u003e\n\u003eHeaderComponent现在支持任意的RN组件，但是需要放在AnyHeader的组件中，\u003cbr\u003e其中onHeaderPulling、onHeaderReleasing和onHeaderMoving的参数为{nativeEvent:{percent,offset,headerHeight}},可用来控制下拉和释放过程中更为精细的动画,\u003cbr\u003e\n\u003e 如果下拉和释放过程不需要过程动画，则使用onPullDownToRefresh和onReleaseToRefresh即可实现。\n\u003e\u003cbr\u003e请看示例：Example \u003cbr/\u003e [HuaweiRefreshControl](https://github.com/react-native-studio/react-native-SmartRefreshLayout/blob/master/Example/HuaWeiRefreshControl.js)\n\u003e、 [LottieRefreshControl](https://github.com/react-native-studio/react-native-SmartRefreshLayout/blob/master/Example/LottieRefreshControl.js)\n\u003e\n\u003eIOS自定义下拉刷新组件见[React-Native-MJRefresh](https://github.com/react-native-studio/react-native-MJRefresh)\n\u003e\n\u003e\n\n\n\u003e建议:该组件与[lottie-react-native](https://github.com/react-community/lottie-react-native)配合使用可获得绝佳的下拉动画效果\n\n## 安装\n#### 第一步\n工程目录下运行:\n\u003cbr\u003e\n```bash\nnpm install --save react-native-smartrefreshlayout\n```\n\nor (已经安装了yarn)\n\u003cbr\u003e\n\n```bash\nyarn add react-native-smartrefreshlayout\n```\n\n\n#### 第二步\n工程目录下运行:\u003cbr\u003e\n```bash\nreact-native link react-native-smartrefreshlayout\n```\n\n## 使用\n在工程中导入：\n```js\nimport {SmartRefreshControl,DefaultHeader} from 'react-native-smartrefreshlayout';\n//使用方法和RN官方的RefreshControl类似，\n            \u003cScrollView\n                refreshControl={\u003cSmartRefreshControl\n                    ref={ref =\u003e this.rc = ref}\n                    HeaderComponent={\u003cDefaultHeader/\u003e}\n                    onRefresh={() =\u003e {\n                        setTimeout(() =\u003e {\n                            this.rc \u0026\u0026 this.rc.finishRefresh();\n                        }, 1000)\n                    }}\n                /\u003e}\n            \u003e\n            \u003c/ScrollView\u003e\n```\n## 组件\n### SmartRefreshControl\n其他组件查看[AnyHeader](./docs/AnyHeader.md)、[DefaultHeader](./docs/DefaultHeader.md)、[ClassicsHeader](./docs/DefaultHeader.md)、[StoreHouseHeader](./docs/StoreHouse.md)\n#### 查看属性\n- [`HeaderComponent`](README.md#headercomponent)\n- [`renderHeader`](README.md#renderHeader)\n- [`enableRefresh`](README.md#enablerefresh)\n- [`headerHeight`](README.md#headerHeight)\n- [`primaryColor`](README.md#primarycolor)\n- [`autoRefresh`](README.md#autorefresh)\n- [`pureScroll`](README.md#purescroll)\n- [`overScrollBounce`](README.md#overscrollbounce)\n- [`overScrollDrag`](README.md#overscrolldrag)\n- [`dragRate`](README.md#dragrate)\n- [`maxDragRate`](README.md#maxdragrate)\n- [`onRefresh`](README.md#onrefresh)\n- [`onPullDownToRefresh`](README.md#onpulldowntorefresh)\n- [`onReleaseToRefresh`](README.md#onreleasetorefresh)\n- [`onHeaderPulling`](README.md#onheaderpulling)\n- [`onHeaderReleasing`](README.md#onheaderreleasing)\n- [`onHeaderReleased`](README.md#onheaderreleased)\n- [`onHeaderMoving`](README.md#onheadermoving)\n\n#### 查看方法\n\n- [`finishRefresh`](README.md#finishrefresh)\n\n## 文档\n\n### Props\n\n#### `HeaderComponent`\n\n用于渲染SmartRefreshLayout组件的header,默认为DefaultHeader。\n\n\u003e**NOTE**\n\u003e\n\u003e必须传入插件中给出的Header组件，如AnyHeader,DefaultHeader等\n\n| Type | Required |\n| ---- | -------- |\n| Element | No       |\n\n---\n\n#### `renderHeader`\n\n用于渲染SmartRefreshLayout组件的header,默认为DefaultHeader。\n\n\u003e**NOTE**\n\u003e\n\u003e必须传入插件中给出的Header组件，如AnyHeader,DefaultHeader等\n\n| Type | Required |\n| ---- | -------- |\n| Element/func | No       |\n\n---\n\n#### `enableRefresh`\n\n是否启用下拉刷新,默认为true\n\n| Type | Required |\n| ---- | -------- |\n| boolean | No       |\n\n---\n\n#### `headerHeight`\n\n设定header的高度\n\n\u003e**NOTE**\n\u003e\n\u003e自定义 header 时应指定headerHeight。\n\n| Type | Required |\n| ---- | -------- |\n| number | No       |\n\n---\n\n#### `primaryColor`\n\n设置刷新组件的主调色\n\n| Type | Required |\n| ---- | -------- |\n| string | No       |\n\n---\n\n#### `autoRefresh`\n\u003e***NOTE***\n\u003e\n\u003etime字段含义：延迟time毫秒后自动刷新\n\n是否自动刷新\n\n| Type | Required |\n| ---- | -------- |\n| object:{refresh:boolean, time:number} | No       |\n\n---\n\n#### `pureScroll`\n\n是否启用纯滚动\n\n| Type | Required |\n| ---- | -------- |\n| boolean | No       |\n\n---\n\n#### `overScrollBounce`\n\n是否允许越界回弹\n\n| Type | Required |\n| ---- | -------- |\n| boolean | No       |\n\n---\n\n#### `overScrollDrag`\n\n是否启用越界拖动，类似IOS样式。\n\n| Type | Required |\n| ---- | -------- |\n| boolean | No       |\n\n---\n\n#### `dragRate`\n\n设置组件下拉高度与手指真实下拉高度的比值,默认为0.5。\n\n| Type | Required |\n| ---- | -------- |\n| number | No       |\n\n---\n\n#### `maxDragRate`\n\n设置最大显示下拉高度与header标准高度的比值，默认为2.0。\n\n| Type | Required |\n| ---- | -------- |\n| number | No       |\n\n---\n\n#### `onPullDownToRefresh`\n\n可下拉刷新时触发\n\n| Type | Required |\n| ---- | -------- |\n| function | No       |\n\n---\n\n#### `onReleaseToRefresh`\n\n可释放刷新时触发\n\n| Type | Required |\n| ---- | -------- |\n| function | No       |\n\n---\n\n#### `onRefresh`\n\n刷新时触发\n\n| Type | Required |\n| ---- | -------- |\n| function | No       |\n\n---\n\n#### `onHeaderReleased`\n\nHeader释放时触发\n\n| Type | Required |\n| ---- | -------- |\n| function | No       |\n\n---\n\n#### `onHeaderPulling`\n\n```javascript\n   ({nativeEvent: {percent:number, offset:number, headerHeight:number}})=\u003evoid;\n```\nheader下拉过程中触发\n\n| Type | Required |\n| ---- | -------- |\n| function | No       |\n\n---\n\n#### `onHeaderReleasing`\n\n```javascript\n   ({nativeEvent: {percent:number, offset:number, headerHeight:number}})=\u003evoid;\n```\nheader释放过程中触发\n\n| Type | Required |\n| ---- | -------- |\n| function | No       |\n\n---\n\n#### `onHeaderMoving`\n\n```javascript\n   ({nativeEvent: {percent:number, offset:number, headerHeight:number}})=\u003evoid;\n```\nheader移动过程中触发,包括下拉过程和释放过程。\n\n| Type | Required |\n| ---- | -------- |\n| function | No       |\n\n### Methods\n\n#### `finishRefresh`\n\n```javascript\n   finishRefresh([params]);\n```\n\n完成刷新\n\n| Name | Type | Required|\n| ---- | -------- |-----|\n| params | object | NO |\n\nValid `params` keys are：\n* `delayed` (number) - 延迟完成刷新的时间\n* `success` (boolean) - 是否刷新成功,暂时没有影响\n\n\n## 示例\n\u003c!--![image](https://github.com/2534290808/react-native-android-danmaku/blob/master/images/Screenshot_1513176625.png)--\u003e\n\u003cdiv align=center\u003e\n\u003cimg src=\"https://github.com/react-native-studio/react-native-smartrefreshlayout/blob/master/images/lottierefresh.gif\" width = \"280\" alt=\"图片名称\" align=center /\u003e\n\u003cimg src=\"https://github.com/react-native-studio/react-native-smartrefreshlayout/blob/master/images/Screenshot_1520489605.png\" width = \"280\"  alt=\"图片名称\" align=center /\u003e\n\u003cimg src=\"https://github.com/react-native-studio/react-native-smartrefreshlayout/blob/master/images/Screenshot_1520489593.png\" width = \"280\"  alt=\"图片名称\" align=center /\u003e\n  \u003c/div\u003e\n  \n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-native-studio%2Freact-native-smartrefreshlayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-native-studio%2Freact-native-smartrefreshlayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-native-studio%2Freact-native-smartrefreshlayout/lists"}