{"id":17675340,"url":"https://github.com/numandev1/react-native-bottomsheet-reanimated","last_synced_at":"2025-04-05T01:09:39.075Z","repository":{"id":39412716,"uuid":"278847051","full_name":"numandev1/react-native-bottomsheet-reanimated","owner":"numandev1","description":"React Native bottom sheet with fully native 60 FPS animations and awesome user experience","archived":false,"fork":false,"pushed_at":"2022-10-02T19:46:24.000Z","size":5409,"stargazers_count":276,"open_issues_count":19,"forks_count":28,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-24T21:38:35.008Z","etag":null,"topics":["bottom-sheet","bottomsheet","expo","mobile","modal","react-native","reanimated","sheet"],"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/numandev1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"numandev1","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"http://buymeacoffee.com/numan.dev"}},"created_at":"2020-07-11T11:21:14.000Z","updated_at":"2024-09-14T11:36:27.000Z","dependencies_parsed_at":"2022-09-14T19:41:55.892Z","dependency_job_id":null,"html_url":"https://github.com/numandev1/react-native-bottomsheet-reanimated","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-bottomsheet-reanimated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-bottomsheet-reanimated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-bottomsheet-reanimated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-bottomsheet-reanimated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numandev1","download_url":"https://codeload.github.com/numandev1/react-native-bottomsheet-reanimated/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271532,"owners_count":20911587,"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":["bottom-sheet","bottomsheet","expo","mobile","modal","react-native","reanimated","sheet"],"created_at":"2024-10-24T07:10:48.428Z","updated_at":"2025-04-05T01:09:39.060Z","avatar_url":"https://github.com/numandev1.png","language":"TypeScript","funding_links":["https://github.com/sponsors/numandev1","http://buymeacoffee.com/numan.dev","https://www.buymeacoffee.com/numan.dev"],"categories":[],"sub_categories":[],"readme":"### Would you like to support me?\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://github.com/numandev1?tab=followers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/followers/numandev1?label=Follow%20%40numandev1\u0026style=social\" height=\"36\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.youtube.com/channel/UCYCUspfN7ZevgCj3W5GlFAw\"\u003e\u003cimg src=\"https://img.shields.io/youtube/channel/subscribers/UCYCUspfN7ZevgCj3W5GlFAw?style=social\" height=\"36\" /\u003e\u003ca/\u003e\n\u003c/br\u003e\n\u003ca href=\"https://www.buymeacoffee.com/numan.dev\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\u003c/div\u003e\n\n---\n| :warning: IMPORTANT: This Library has been deprecated in favor of [react-native-bottom-sheet](https://github.com/gorhom/react-native-bottom-sheet) because this Library is using Reanimated V1 |\n| --- |\n\n# react-native-bottomsheet-reanimated\n\nHighly configurable component imitating [native bottom sheet behavior](https://material.io/design/components/sheets-bottom.html#standard-bottom-sheet), with fully native 60 FPS animations!\n\nBuilt from scratch with [react-native-interactable-reanimated](https://www.npmjs.com/package/react-native-interactable-reanimated) and [react-native-reanimated](https://github.com/kmagiera/react-native-reanimated).\n\nUsable with Expo with no extra native dependencies!\n\n| ![](media/bottom1.gif) | ![](media/bottom2.gif) | ![](media/bottom3.gif) |\n| :--------------------: | :--------------------: | :--------------------: |\n\n## Installation\n\nOpen a Terminal in the project root and run:\n\n```sh\nyarn add react-native-bottomsheet-reanimated react-native-interactable-reanimated\n```\n\nor if you use `npm`:\n\n```sh\nnpm install react-native-bottomsheet-reanimated\n```\n\nIf you are using Expo, you are done.\n\nIf you don't use Expo, install and link [react-native-gesture-handler](https://kmagiera.github.io/react-native-gesture-handler/docs/getting-started.html) and [react-native-reanimated](https://github.com/kmagiera/react-native-reanimated).\n\n## Usage\n\n```javascript\nimport BottomSheet from 'react-native-bottomsheet-reanimated';\n\nclass Example extends React.Component {\n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cBottomSheet\n          keyboardAware\n          bottomSheerColor=\"#FFFFFF\"\n          ref=\"BottomSheet\"\n          initialPosition={'50%'} //200, 300\n          snapPoints={['50%', '100%']}\n          isBackDrop={true}\n          isBackDropDismissByPress={true}\n          isRoundBorderWithTipHeader={true}\n          // backDropColor=\"red\"\n          // isModal\n          // containerStyle={{backgroundColor:\"red\"}}\n          // tipStyle={{backgroundColor:\"red\"}}\n          // headerStyle={{backgroundColor:\"red\"}}\n          // bodyStyle={{backgroundColor:\"red\",flex:1}}\n          header={\n            \u003cView\u003e\n              \u003cText style={styles.text}\u003eHeader\u003c/Text\u003e\n            \u003c/View\u003e\n          }\n          body={\n            \u003cView style={styles.body}\u003e\n              \u003cText style={styles.text}\u003eBody\u003c/Text\u003e\n            \u003c/View\u003e\n          }\n        /\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n```\n\n## Props\n\n| name                         | required | default   | description                                                                                                                                                                                                                                                                    |\n| ---------------------------- | -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| keyboardAware                | no       | `false`   | `true` will avoid current snap when keyboard will open.                                                                                                                                                                                                                        |\n| overDrag                     | no       | `true`    | `false` will disable overdrag of last snap, `false` will also disable `bounce' and `isModal`.                                                                                                                                                                                  |\n| keyboardAwareExtraSnapHeight | no       | 0         | when `keyboardAware=true` and this is for adding extra space in snap when keyboard open                                                                                                                                                                                        |\n| keyboardAwareDrag            | no       | `false`   | when `keyboardAware=true` and this is used for enable or disable drag when keyboard open                                                                                                                                                                                       |\n| onChangeKeyboardAwareSnap    | no       |           | when `keyboardAware=true` then it give keyboard awareview snap. ` onChangeKeyboardAwareSnap: (previousSnap: number,nextSnap: number,keyboardHeight: number) =\u003e void;`                                                                                                          |\n| snapPoints                   | yes      |           | E.g. `[300, 200, 0]`. Points for snapping of bottom sheet coomponent. They define distance from bottom of the screen. Might be number or percent (as string e.g. `'20%'`) for points or percents of screen height from bottom. Note: Array values must be in descending order. |\n| initialPosition              | no       | 0         | Determines initial position point of bottom sheet. The value outside of snap points.                                                                                                                                                                                           |\n| body                         | no       |           | Method for rendering scrollable content of bottom sheet.                                                                                                                                                                                                                       |\n| header                       | no       |           | Method for rendering non-scrollable header of bottom sheet.                                                                                                                                                                                                                    |\n| isBackDrop                   | no       | `false`   | for show backdrop behind the bottom sheet.                                                                                                                                                                                                                                     |\n| isBackDropDismissByPress     | no       | `false`   | enable to move bottomsheet to first snappoint by pressing backdrop.                                                                                                                                                                                                            |\n| isRoundBorderWithTipHeader   | no       | `false`   | give round with tip header style to bottomsheet.                                                                                                                                                                                                                               |\n| isModal                      | no       | `false`   | to make bottom sheet like modal.                                                                                                                                                                                                                                               |\n| bounce                       | no       | 0.5       | for increase or decrease bounce effect                                                                                                                                                                                                                                         |\n| isAnimatedYFromParent        | no       |           | If `true` then give animated value to `animatedValueY` props.                                                                                                                                                                                                                  |\n| animatedValueY               | no       |           | If isAnimatedYFromParent will be `true` then it will give animtedY value to `animatedValueY` props.                                                                                                                                                                            |\n| bottomSheerColor             | no       | `#ffffff` | for background color of bottom sheet.                                                                                                                                                                                                                                          |\n| tipStyle                     | no       |           | for change style of tip. it is dependted on `isRoundBorderWithTipHeader`.                                                                                                                                                                                                      |\n| headerStyle                  | no       |           | for change style of header.                                                                                                                                                                                                                                                    |\n| bodyStyle                    | no       |           | for change style of body.                                                                                                                                                                                                                                                      |\n| dragEnabled                  | no       | true      | for enable/disable drag                                                                                                                                                                                                                                                        |\n| tipHeaderRadius              | no       | 12        | for tip header border radius                                                                                                                                                                                                                                                   |\n| onClose                      | no       |           | Method call when bottomsheet close                                                                                                                                                                                                                                             |\n| containerStyle               | no       |           | for change style of container                                                                                                                                                                                                                                                  |\n| bodyContainerStyle           | no       |           | for change style of body container                                                                                                                                                                                                                                             |\n| onChangeSnap                 | no       |           | Method call when change any snap                                                                                                                                                                                                                                               |\n\n## Methods\n\n### `snapTo(index)`\n\nImperative method on for snapping to snap point in given index. E.g.\n\n```javascript\n// Snap to the snap point at index 0 (e.g. 450 in [450, 300, 0])\nthis.refs.BottomSheet.current.snapTo(0);\n```\n\nHere `this.refs.BottomSheet` refers [to the `ref`](https://reactjs.org/docs/react-api.html#reactcreateref) passed to the `BottomSheet` component.\n\n## Example\n\nMore complex examples can be found in the `Example` folder. To view the examples in the [Expo app](https://expo.io/), open a Terminal and run:\n\n```sh\nyarn\ncd Example\nyarn\nexpo start\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/numandev1\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/36044436?s=460\u0026u=c7471cd9ccec793c7a0fccc7db475a577ff7969d\u0026v=4\" width=\"100px;\" alt=\"Numan\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eNuman\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#infra-Numan\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"https://github.com/numandev1/react-native-bottomsheet-reanimated/commits?author=numandev1\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumandev1%2Freact-native-bottomsheet-reanimated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumandev1%2Freact-native-bottomsheet-reanimated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumandev1%2Freact-native-bottomsheet-reanimated/lists"}