{"id":25478477,"url":"https://github.com/moschan/react-native-pull-to-refresh","last_synced_at":"2025-04-06T12:08:16.238Z","repository":{"id":57339275,"uuid":"48743039","full_name":"moschan/react-native-pull-to-refresh","owner":"moschan","description":"The Pull-To-Refresh component for React Native (iOS/Android)","archived":false,"fork":false,"pushed_at":"2020-04-17T21:42:03.000Z","size":630,"stargazers_count":165,"open_issues_count":18,"forks_count":43,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T11:06:51.953Z","etag":null,"topics":["component","pull-to-refresh","react","react-native","ui-components"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moschan.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":"2015-12-29T10:52:26.000Z","updated_at":"2024-10-10T10:57:33.000Z","dependencies_parsed_at":"2022-09-16T07:51:09.510Z","dependency_job_id":null,"html_url":"https://github.com/moschan/react-native-pull-to-refresh","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moschan%2Freact-native-pull-to-refresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moschan%2Freact-native-pull-to-refresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moschan%2Freact-native-pull-to-refresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moschan%2Freact-native-pull-to-refresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moschan","download_url":"https://codeload.github.com/moschan/react-native-pull-to-refresh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478321,"owners_count":20945266,"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","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":["component","pull-to-refresh","react","react-native","ui-components"],"created_at":"2025-02-18T14:35:07.823Z","updated_at":"2025-04-06T12:08:16.213Z","avatar_url":"https://github.com/moschan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-pull-to-refresh (iOS/Android)\n\u003e The pull-to-refresh view component for React Native\n\n[![npm](https://img.shields.io/npm/v/react-native-pull-to-refresh.svg)]()[![npm](https://img.shields.io/npm/l/react-native-pull-to-refresh.svg)]()\n\n\n[![NPM](https://nodei.co/npm/react-native-pull-to-refresh.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/react-native-pull-to-refresh/)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) [![forthebadge](http://forthebadge.com/images/badges/uses-js.svg)](http://forthebadge.com)\n\nDemo\n---\niOS|Android\n----|----\n![demo](./doc/demo_ios.gif)| ![demo](./doc/demo_android.gif)\n\n# Installation\n```\nnpm i react-native-pull-to-refresh --save\n```\n\n\n# Getting started\n\n\n```jsx\nimport PTRView from 'react-native-pull-to-refresh';\n\n\nvar PullToRefreshProject = React.createClass({\n  _refresh: function() {\n    return new Promise((resolve) =\u003e {\n      setTimeout(()=\u003e{resolve()}, 2000)\n    });\n  },\n  render: function() {\n    return (\n      \u003cPTRView onRefresh={this._refresh} \u003e\n        \u003cView style={styles.container}\u003e\n          \u003cText style={styles.welcome}\u003e\n            Let's Pull!\n          \u003c/Text\u003e\n        \u003c/View\u003e\n      \u003c/PTRView\u003e\n    );\n  },\n});\n```\n# Props\n\n## onRefresh\nThe method of refresh. You have to return promise object.\n\n## delay(default:`0`)\ndelay time of refresh. If you set this this prop, refresh function will be delayed\n\n## offset(default:`80`) `iOS`\ndistance of pull to refresh\n\n## colors(default:`#000`) `Android`\nThe background color of the refresh indicator\n\n## progressBackgroundColor(default:`transparent`) `Android`\nThe background color of the refresh indicator\n\n# Contributing\nWelcome :)\n\nYou can use following command in `example` dir:\n\n```\nnpm run sync\n```\n\nDuring running this command, when you change source to implement/fix something, these changes will sync to `example/node_modules/react-native-pull-to-refresh/`. You can check your change using example project easily.\n\n# License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoschan%2Freact-native-pull-to-refresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoschan%2Freact-native-pull-to-refresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoschan%2Freact-native-pull-to-refresh/lists"}