{"id":28094800,"url":"https://github.com/sjwall/react-native-drag-expand","last_synced_at":"2025-07-10T15:40:59.218Z","repository":{"id":264367156,"uuid":"889635820","full_name":"sjwall/react-native-drag-expand","owner":"sjwall","description":"Component to use drag gesture to expand or collapse a view size.","archived":false,"fork":false,"pushed_at":"2025-01-25T18:40:32.000Z","size":531,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T14:20:44.821Z","etag":null,"topics":["component","drag","draggable","headless","react-native","ui","view"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/sjwall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"sjwall"}},"created_at":"2024-11-16T20:36:11.000Z","updated_at":"2025-03-24T13:05:57.000Z","dependencies_parsed_at":"2025-05-13T14:13:11.314Z","dependency_job_id":"b0aa5e4f-0ca3-43a8-a8cc-8089abf7e9d8","html_url":"https://github.com/sjwall/react-native-drag-expand","commit_stats":null,"previous_names":["sjwall/react-native-drag-expand"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/sjwall/react-native-drag-expand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjwall%2Freact-native-drag-expand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjwall%2Freact-native-drag-expand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjwall%2Freact-native-drag-expand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjwall%2Freact-native-drag-expand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjwall","download_url":"https://codeload.github.com/sjwall/react-native-drag-expand/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjwall%2Freact-native-drag-expand/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260050176,"owners_count":22951417,"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","drag","draggable","headless","react-native","ui","view"],"created_at":"2025-05-13T14:12:44.779Z","updated_at":"2025-07-10T15:40:59.213Z","avatar_url":"https://github.com/sjwall.png","language":"TypeScript","funding_links":["https://github.com/sponsors/sjwall"],"categories":[],"sub_categories":[],"readme":"# react-native-drag-expand\n\n\u003ch3 align=\"center\"\u003e\n  Bring your own UI, headless drag expand view.\n\u003c/h3\u003e\n\n[![npm version](https://badge.fury.io/js/react-native-drag-expand.svg)][npm]\n[![npm downloads](https://img.shields.io/npm/dw/react-native-drag-expand?logo=npm\u0026label=NPM%20downloads\u0026cacheSeconds=3600)][npm]\n[![GitHub license](https://img.shields.io/github/license/sjwall/react-native-drag-expand)][license]\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)][pr]\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n![Demo](./demo.gif)\n\n## Installing react-native-drag-expand\n\nTo install react-native-drag-expand:\n\n```bash\nnpm install react-native-drag-expand\n```\n\nNext, add the view:\n\n```tsx\nimport {DragExpandView} from 'react-native-drag-expand'\nimport {Text, View} from 'react-native'\n\nexport default function App() {\n  return (\n    // Styled view container\n    \u003cView\u003e\n      \u003cDragExpandView\u003e\n        \u003cDragExpandView.Collapsed\u003e\n          \u003cView\u003e\n            \u003cText\u003eYour collapsed content\u003c/Text\u003e\n          \u003c/View\u003e\n        \u003c/DragExpandView.Collapsed\u003e\n        \u003cDragExpandView.Expanded\u003e\n          \u003cView\u003e\n            \u003cText\u003eYour expanded content\u003c/Text\u003e\n          \u003c/View\u003e\n        \u003c/DragExpandView.Expanded\u003e\n        \u003cDragExpandView.Knob\u003e\n          \u003cView\u003e\n            \u003cText\u003eYour drag hold point view\u003c/Text\u003e\n          \u003c/View\u003e\n        \u003c/DragExpandView.Knob\u003e\n      \u003c/DragExpandView\u003e\n    \u003c/View\u003e\n  )\n}\n```\n\n\u003c!-- Definitions --\u003e\n\n[license]: https://github.com/sjwall/react-native-drag-expand/blob/main/LICENSE\n\n[npm]: https://www.npmjs.com/package/react-native-drag-expand\n\n[pr]: http://makeapullrequest.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjwall%2Freact-native-drag-expand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjwall%2Freact-native-drag-expand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjwall%2Freact-native-drag-expand/lists"}