{"id":17129679,"url":"https://github.com/enesozturk/rn-swipeable-panel","last_synced_at":"2025-04-14T20:54:55.472Z","repository":{"id":37692980,"uuid":"189957962","full_name":"enesozturk/rn-swipeable-panel","owner":"enesozturk","description":"Zero dependency swipeable bottom panel for React Native 📱","archived":false,"fork":false,"pushed_at":"2023-01-06T20:35:07.000Z","size":49134,"stargazers_count":972,"open_issues_count":59,"forks_count":143,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-07T13:03:19.543Z","etag":null,"topics":["android","bottom","bottom-sheet","ios","panel","react-native","sheet","swipeable"],"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/enesozturk.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":"2019-06-03T07:41:01.000Z","updated_at":"2025-03-11T16:49:53.000Z","dependencies_parsed_at":"2023-02-06T09:01:28.766Z","dependency_job_id":null,"html_url":"https://github.com/enesozturk/rn-swipeable-panel","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enesozturk%2Frn-swipeable-panel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enesozturk%2Frn-swipeable-panel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enesozturk%2Frn-swipeable-panel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enesozturk%2Frn-swipeable-panel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enesozturk","download_url":"https://codeload.github.com/enesozturk/rn-swipeable-panel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248961112,"owners_count":21189991,"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":["android","bottom","bottom-sheet","ios","panel","react-native","sheet","swipeable"],"created_at":"2024-10-14T19:10:19.286Z","updated_at":"2025-04-14T20:54:55.398Z","avatar_url":"https://github.com/enesozturk.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch1\u003eReact Native Swipeable Panel\u003c/h1\u003e\n\n**rn-swipeable-panel** is a swipeable, easy to use bottom panel for your React Native projects. You can extend panel by swiping up, make it small or close by swiping down with pan gestures. Feel free to redesign inside of the panel.\n\n[![npm version](https://img.shields.io/npm/v/rn-swipeable-panel.svg)](https://www.npmjs.com/package/rn-swipeable-panel)\n\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv align=\"center\" style=\"margin-bottom:1em\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/19428358/82732219-913fb680-9d14-11ea-8128-55b20b0f7d1c.gif\" width=\"auto\" height=\"600\"/\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n## ⚙️ Installation\n\nTo install the package;\n\n```\n$ yarn add rn-swipeable-panel\n```\n\n✅ It is done!\n\n\u003c!-- ## Usage --\u003e\n\n## 🚀 How to use\n\n```javascript\nimport React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { SwipeablePanel } from 'rn-swipeable-panel';\n\nexport default App = () =\u003e {\n  const [panelProps, setPanelProps] = useState({\n    fullWidth: true,\n    openLarge: true,\n    showCloseButton: true,\n    onClose: () =\u003e closePanel(),\n    onPressCloseButton: () =\u003e closePanel(),\n    // ...or any prop you want\n  });\n  const [isPanelActive, setIsPanelActive] = useState(false);\n\n  const openPanel = () =\u003e {\n    setIsPanelActive(true);\n  };\n\n  const closePanel = () =\u003e {\n    setIsPanelActive(false);\n  };\n\n  return (\n    \u003cView style={styles.container}\u003e\n      \u003cText style={styles.welcome}\u003eWelcome to React Native!\u003c/Text\u003e\n      \u003cText style={styles.instructions}\u003eTo get started, edit App.js\u003c/Text\u003e\n      \u003cSwipeablePanel {...panelProps} isActive={isPanelActive}\u003e\n        \u003cPanelContent /\u003e {/* Your Content Here */}\n      \u003c/SwipeablePanel\u003e\n    \u003c/View\u003e\n  );\n};\n```\n\n## ☝️ Options\n\n\u003cbr/\u003e\n\n| Properties              | Type       | Description                                                 | Default |\n| ----------------------- | ---------- | ----------------------------------------------------------- | ------- |\n| **isActive**            | `bool`     | Show/Hide the panel                                         | `false` |\n| **onClose**             | `Function` | Fired when the panel is closed                              |         |\n| **showCloseButton**     | `bool`     | Set true if you want to show close button                   |         |\n| **fullWidth**           | `bool`     | Set true if you want to make full with panel                | `false` |\n| **openLarge**           | `bool`     | Set true if you want to open panel large by default         | `false` |\n| **onlyLarge**           | `bool`     | Set true if you want to let panel open just large mode      | `false` |\n| **onlySmall**           | `bool`     | Set true if you want to let panel open just small mode      | `false` |\n| **noBackgroundOpacity** | `bool`     | Set true if you want to disable black background opacity    | `false` |\n| **style**               | `Object`   | Use this prop to override panel style                       | `{}`    |\n| **closeRootStyle**      | `Object`   | Use this prop to override close button background style     | `{}`    |\n| **closeIconStyle**      | `Object`   | Use this prop to override close button icon style           | `{}`    |\n| **barStyle**            | `Object`   | Use this prop to override bar style                         | `{}`    |\n| **smallPanelHeight**    | `Object`   | Use this prop to override the small panel default height    |         |\n| **barContainerStyle**   | `Object`   | Use this prop to override bar container style               | `{}`    |\n| **closeOnTouchOutside** | `bool`     | Set true if you want to close panel by touching outside     | `false` |\n| **allowTouchOutside**   | `bool`     | Set true if you want to make toucable outside of panel      | `false` |\n| **noBar**               | `bool`     | Set true if you want to remove gray bar                     | `false` |\n| **scrollViewProps**     | `Object`   | Use this prop to override scroll view that inside the panel | `{}`    |\n\n#### ⭐️ Show Your Support\n\nPlease give a ⭐️ if this project helped you!\n\n#### 👏 Contributing\n\nIf you have any questions or requests or want to contribute to `rn-swipeable-panel`, please write the [issue](https://github.com/enesozturk/rn-swipeable-panel/issues) or give me a Pull Request freely.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenesozturk%2Frn-swipeable-panel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenesozturk%2Frn-swipeable-panel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenesozturk%2Frn-swipeable-panel/lists"}