{"id":3938,"url":"https://github.com/dancormier/react-native-swipeout","last_synced_at":"2025-09-28T19:32:02.341Z","repository":{"id":32818273,"uuid":"36411141","full_name":"dancormier/react-native-swipeout","owner":"dancormier","description":"iOS-style swipeout buttons behind component","archived":true,"fork":false,"pushed_at":"2020-09-16T16:57:25.000Z","size":21161,"stargazers_count":2617,"open_issues_count":108,"forks_count":651,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-01-15T20:40:56.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"j-min/DL-for-Chatbot","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dancormier.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","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-05-28T03:00:42.000Z","updated_at":"2025-01-15T07:46:56.000Z","dependencies_parsed_at":"2022-07-12T19:10:26.550Z","dependency_job_id":null,"html_url":"https://github.com/dancormier/react-native-swipeout","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dancormier%2Freact-native-swipeout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dancormier%2Freact-native-swipeout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dancormier%2Freact-native-swipeout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dancormier%2Freact-native-swipeout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dancormier","download_url":"https://codeload.github.com/dancormier/react-native-swipeout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234105536,"owners_count":18780664,"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":[],"created_at":"2024-01-05T20:16:55.896Z","updated_at":"2025-09-28T19:32:01.872Z","avatar_url":"https://github.com/dancormier.png","language":"JavaScript","funding_links":[],"categories":["Components","组件","JavaScript","Libraries","Others"],"sub_categories":["UI","ListView\u0026ScrollView","List"],"readme":"# DEPRECATED\nthis is no longer supported, please consider using https://github.com/software-mansion/react-native-gesture-handler instead.\n\n# react-native-swipeout\niOS-style swipeout buttons that appear from behind a component\n\n![swipeout preview](http://i.imgur.com/oCQLNFC.gif)\n\n## Installation\n```\nnpm install --save react-native-swipeout\n```\n\n## Usage example\n\nSee example/index.ios.js for a more detailed example.\nSee the [Wiki](https://github.com/dancormier/react-native-swipeout/wiki) usage tips.\nTo use swipeout behind a iOS-style listitem, try [react-native-listitem](https://github.com/dancormier/react-native-listitem).\n\n```js\nimport Swipeout from 'react-native-swipeout';\n\n// Buttons\nvar swipeoutBtns = [\n  {\n    text: 'Button'\n  }\n]\n\n// Swipeout component\n\u003cSwipeout right={swipeoutBtns}\u003e\n  \u003cView\u003e\n    \u003cText\u003eSwipe me left\u003c/Text\u003e\n  \u003c/View\u003e\n\u003c/Swipeout\u003e\n\n```\n\n## Props\n\nProp            | Type   | Optional | Default   | Description\n--------------- | ------ | -------- | --------- | -----------\nautoClose       | bool   | Yes      | false     | auto close on button press\nbackgroundColor | string | Yes      | '#dbddde' |\nclose           | bool   | Yes      |           | close swipeout\ndisabled        | bool   | Yes      |  false    | whether to disable the swipeout  \nleft            | array  | Yes      | []        | swipeout buttons on left\nonOpen          | func   | Yes      |           | (sectionID, rowId, direction: string) =\u003e void\nonClose          | func   | Yes      |           | (sectionID, rowId, direction: string) =\u003e void\nright           | array  | Yes      | []        | swipeout buttons on right\nscroll          | func   | Yes      |           | prevent parent scroll\nstyle           | style  | Yes      |           | style of the container\nsensitivity     | number | Yes      | 50         | change the sensitivity of gesture\nbuttonWidth     | number | Yes      |            | each button width\n\n##### Button props\n\nProp            | Type   | Optional | Default   | Description\n--------------- | ------ | -------- | --------- | -----------\nbackgroundColor | string | Yes      | '#b6bec0' | background color\ncolor           | string | Yes      | '#ffffff' | text color\ncomponent       | ReactNode | Yes      | null      | pass custom component to button\nonPress         | func   | Yes      | null      | function executed onPress\ntext            | string | Yes      | 'Click Me'| text\ntype            | string | Yes      | 'default' | default, delete, primary, secondary\nunderlayColor   | string | Yes      | null      | button underlay color on press\ndisabled        | bool   | Yes      | false     | disable button\n\n## To Do\n\n[https://github.com/dancormier/react-native-swipeout/issues](https://github.com/dancormier/react-native-swipeout/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdancormier%2Freact-native-swipeout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdancormier%2Freact-native-swipeout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdancormier%2Freact-native-swipeout/lists"}