{"id":15694295,"url":"https://github.com/runjuu/react-native-elastic-swipe","last_synced_at":"2025-09-05T18:47:45.309Z","repository":{"id":57336719,"uuid":"135863084","full_name":"runjuu/react-native-elastic-swipe","owner":"runjuu","description":"🎏 A simple react native swipe component with elastic effect.","archived":false,"fork":false,"pushed_at":"2018-06-08T07:24:40.000Z","size":55,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-30T05:57:20.269Z","etag":null,"topics":["elastic","react","react-native","swipe","swipe-component"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-elastic-swipe","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/runjuu.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-06-03T01:01:09.000Z","updated_at":"2023-07-27T10:13:40.000Z","dependencies_parsed_at":"2022-09-11T12:22:29.908Z","dependency_job_id":null,"html_url":"https://github.com/runjuu/react-native-elastic-swipe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/runjuu/react-native-elastic-swipe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runjuu%2Freact-native-elastic-swipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runjuu%2Freact-native-elastic-swipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runjuu%2Freact-native-elastic-swipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runjuu%2Freact-native-elastic-swipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runjuu","download_url":"https://codeload.github.com/runjuu/react-native-elastic-swipe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runjuu%2Freact-native-elastic-swipe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273804568,"owners_count":25171556,"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-09-05T02:00:09.113Z","response_time":402,"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":["elastic","react","react-native","swipe","swipe-component"],"created_at":"2024-10-03T18:56:06.050Z","updated_at":"2025-09-05T18:47:45.287Z","avatar_url":"https://github.com/runjuu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-elastic-swipe\n[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Runjuu/react-native-elastic-swipe/pulls)\n[![npm version](https://badge.fury.io/js/react-native-elastic-swipe.svg)](https://badge.fury.io/js/react-native-elastic-swipe)\n\nA simple react native swipe component with elastic effect.\n\n```bash\nnpm install react-native-elastic-swipe\n```\n\n### Props\n```typescript\ninterface Props {\n  friction?: number\n  criticalOffsetX?: number\n  criticalOffsetY?: number\n  swipeHorizontally?: boolean\n  swipeVertically?: boolean\n  onChangeReachStateOfHorizontal?(isReachedCriticalOffsetX: boolean): void\n  onChangeReachStateOfVertical?(isReachedCriticalOffsetY: boolean): void\n  onSwipeMove?(e: GestureResponderEvent, gestureState: PanResponderGestureState): void\n  onSwipeEnd?(e: GestureResponderEvent, gestureState: PanResponderGestureState): void\n  shouldSetPanResponder?(e: GestureResponderEvent, gestureState: PanResponderGestureState): boolean\n}\n```\n\n### Example\n```jsx\nimport Swipe from \"react-native-elastic-swipe\";\n  \n  ...\n  render() {\n    return (\n      \u003cSwipe\n        friction={5}\n        swipeHorizontally\n        criticalOffsetX={21}\n        onSwipeMove={this.onSwipeMove}\n        onSwipeEnd={this.onSwipeEnd}\n        onChangeReachStateOfHorizontal={this.onChangeReachStateOfHorizontal}\n      \u003e\n        \u003cView /\u003e    \n      \u003c/Swipe\u003e\n    );\n  }\n  ...\n```\n\n### Demo\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Runjuu/SongLink\"\u003e\n    \u003cimg src=\"https://i.imgur.com/M6RGAwG.gif\" width=\"375\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunjuu%2Freact-native-elastic-swipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunjuu%2Freact-native-elastic-swipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunjuu%2Freact-native-elastic-swipe/lists"}