{"id":21768285,"url":"https://github.com/hoaphantn7604/react-native-vertical-swipe-view","last_synced_at":"2025-04-13T15:41:28.723Z","repository":{"id":74237599,"uuid":"379829330","full_name":"hoaphantn7604/react-native-vertical-swipe-view","owner":"hoaphantn7604","description":"React Native Vertical Swipe View","archived":false,"fork":false,"pushed_at":"2022-12-02T04:21:21.000Z","size":456,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T06:34:45.642Z","etag":null,"topics":["components","elements","react-native","swipe","vertical"],"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/hoaphantn7604.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2021-06-24T06:42:56.000Z","updated_at":"2022-11-09T07:54:08.000Z","dependencies_parsed_at":"2023-03-09T21:30:52.177Z","dependency_job_id":null,"html_url":"https://github.com/hoaphantn7604/react-native-vertical-swipe-view","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoaphantn7604%2Freact-native-vertical-swipe-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoaphantn7604%2Freact-native-vertical-swipe-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoaphantn7604%2Freact-native-vertical-swipe-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoaphantn7604%2Freact-native-vertical-swipe-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoaphantn7604","download_url":"https://codeload.github.com/hoaphantn7604/react-native-vertical-swipe-view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322608,"owners_count":21084336,"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":["components","elements","react-native","swipe","vertical"],"created_at":"2024-11-26T13:35:15.419Z","updated_at":"2025-04-13T15:41:28.698Z","avatar_url":"https://github.com/hoaphantn7604.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-vertical-swipe-view\nReact Native Vertical Swipe View.\n## Getting started\n\n```js\n    npm install react-native-vertical-swipe-view --save\n```\n\nor\n\n```js\n    yarn add react-native-vertical-swipe-view\n```\n\n### Demo\n\n![](https://github.com/hoaphantn7604/file-upload/blob/master/document/swipeview/demo.gif)\n\n#### Props\n\n| Props           | Params            | isRequire | Description |\n| --------------- | ----------------- | --------- | ----------- |\n| visible         | Boolean           | No        |             |\n| style           | ViewStyle         | No        |             |\n| headerStyle     | ViewStyle         | No        |             |\n| backgroundColor | String            | No        |             |\n| maxHeight       | Number            | Yes       |             |\n| position        | 'top' or 'bottom' | No        |             |\n| renderHeader    | () =\u003e JSX.Element | No        |             |\n| onRequestShow   | ()=\u003e void         | No        |             |\n| onRequestClose  | ()=\u003e void         | No        |             |\n\n## Usage\n\n```javascript\nimport React from 'react';\nimport { StyleSheet, View, SafeAreaView } from 'react-native';\nimport SwipeView from 'react-native-vertical-swipe-view';\n\nconst SwipeViewScreen = (_props) =\u003e {\n  const _renderHeaderTop = () =\u003e {\n    return (\n      \u003cView style={styles.headerTop}\u003e\n        \u003cView style={styles.lineTop} /\u003e\n      \u003c/View\u003e\n    );\n  };\n\n  const _renderHeaderBottom = () =\u003e {\n    return (\n      \u003cView style={styles.headerBottom}\u003e\n        \u003cView style={styles.lineBottom} /\u003e\n      \u003c/View\u003e\n    );\n  };\n\n  return (\n    \u003cSafeAreaView style={styles.container}\u003e\n      \u003cSwipeView\n        position=\"top\"\n        style={styles.curtainView}\n        maxHeight={300}\n        headerStyle={{ backgroundColor: 'transparent' }}\n        renderHeader={_renderHeaderTop}\n      \u003e\n        \u003cView style={styles.curtainContainer} /\u003e\n      \u003c/SwipeView\u003e\n\n      \u003cView style={{ flex: 1 }} /\u003e\n\n      \u003cSwipeView\n        position=\"bottom\"\n        style={styles.curtainView}\n        maxHeight={200}\n        headerStyle={{ backgroundColor: 'transparent' }}\n        renderHeader={_renderHeaderBottom}\n      \u003e\n        \u003cView style={styles.curtainContainer} /\u003e\n      \u003c/SwipeView\u003e\n    \u003c/SafeAreaView\u003e\n  );\n};\n\nexport default SwipeViewScreen;\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n  },\n  curtainView: {\n    width: '100%',\n  },\n  curtainContainer: {\n    flex: 1,\n    backgroundColor: 'gray',\n  },\n  row: {\n    flex: 1,\n    flexDirection: 'row',\n    justifyContent: 'space-between',\n    padding: 20,\n  },\n  headerTop: {\n    flex: 1,\n    backgroundColor: 'transparent',\n    justifyContent: 'center',\n    alignItems: 'center',\n  },\n  headerBottom: {\n    flex: 1,\n    backgroundColor: 'black',\n    borderTopLeftRadius: 22,\n    borderTopRightRadius: 22,\n    justifyContent: 'center',\n    alignItems: 'center',\n  },\n  lineTop: {\n    width: 40,\n    height: 6,\n    backgroundColor: 'gray',\n  },\n  lineBottom: {\n    width: 40,\n    height: 6,\n    backgroundColor: 'white',\n  },\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoaphantn7604%2Freact-native-vertical-swipe-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoaphantn7604%2Freact-native-vertical-swipe-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoaphantn7604%2Freact-native-vertical-swipe-view/lists"}