{"id":31265413,"url":"https://github.com/romancxx/react-native-bottom-modal-scrollable","last_synced_at":"2025-09-23T14:24:39.300Z","repository":{"id":41266018,"uuid":"496620139","full_name":"romancxx/react-native-bottom-modal-scrollable","owner":"romancxx","description":"A Bottom Modal component for React Native","archived":false,"fork":false,"pushed_at":"2022-07-18T04:38:18.000Z","size":11586,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T10:01:55.794Z","etag":null,"topics":["android","bottom-modal","component","ios","modal","react-native"],"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/romancxx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.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":"2022-05-26T12:54:18.000Z","updated_at":"2023-04-25T12:39:56.000Z","dependencies_parsed_at":"2022-07-13T15:29:41.203Z","dependency_job_id":null,"html_url":"https://github.com/romancxx/react-native-bottom-modal-scrollable","commit_stats":null,"previous_names":["nazort/animated-scroll-modal","nazort/react-native-bottom-modal-scrollable"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/romancxx/react-native-bottom-modal-scrollable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romancxx%2Freact-native-bottom-modal-scrollable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romancxx%2Freact-native-bottom-modal-scrollable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romancxx%2Freact-native-bottom-modal-scrollable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romancxx%2Freact-native-bottom-modal-scrollable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romancxx","download_url":"https://codeload.github.com/romancxx/react-native-bottom-modal-scrollable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romancxx%2Freact-native-bottom-modal-scrollable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276589374,"owners_count":25669089,"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","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-modal","component","ios","modal","react-native"],"created_at":"2025-09-23T14:24:33.891Z","updated_at":"2025-09-23T14:24:39.291Z","avatar_url":"https://github.com/romancxx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bottom Modal Scrollable\n\nA Bottom Modal component for React Native that can be dragged to the maximum height and without releasing the finger off the screen scroll its content to provide a smooth user experience. Fully customizable and compatible with Android \u0026 iOS. Built using react-native-reanimated 2.\n\nPull requests and feedbacks are welcome!\n\n## Overview\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"/assets/demo.gif?raw=true\" height=\"450px\"\u003e\n\u003c/p\u003e\n\n## Installation\n\nThis package requires react-native-reanimated 2 and react-native-gesture-handler to work.\n\n- [Reanimated Installation](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation)\n- [Gesture handler Installation](https://docs.swmansion.com/react-native-gesture-handler/docs/installation)  \n  \u003cem\u003eDon't forget to wrap your app with `\u003cGestureHandlerRootView\u003e` as described in the doc\u003c/em\u003e\n\nThen :\n\n```\nyarn add react-native-bottom-modal-scrollable\n```\n\nor using npm\n\n```\nnpm install react-native-bottom-modal-scrollable\n```\n\n## Quick start\n\n```js\n\nimport { BottomModalScrollable, BottomModalScrollableRef } from  'react-native-bottom-modal-scrollable';\n\n...\n\nconst modalRef = useRef\u003cBottomModalScrollableRef\u003e(null);\n\n...\n\nuseEffect(()  =\u003e {\n  modalRef.current?.open();\n}, [])\n\nreturn (\n  \u003cBottomModalScrollable\n    ref={ref}\n    children={\n      \u003cView\u003e\n        \u003cText\u003eHello\u003c/Text\u003e\n      \u003c/View\u003e\n    }\n  /\u003e\n);\n```\n\n## Props\n\n| Prop                          | Default                  | Type                           | Description                                                                                                                                                          |\n| ----------------------------- | ------------------------ | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| children                      |                          | ReactNode                      | Content to render inside the modal                                                                                                                                   |\n| footer                        |                          | [AbsoluteFooter](src/types.ts) | Element to render in absolute position over the modal at the bottom of the screen                                                                                    |\n| backgroundColor               | #fff                     | string                         | Background color of the modal                                                                                                                                        |\n| defaultModalHeight            | 50% of the window height | number                         | Default height of the modal when opened                                                                                                                              |\n| maxModalHeight                | 90% of the window height | number                         | Maximum height the modal can reach                                                                                                                                   |\n| contentStaticHeight           |                          | number                         | Only use this prop to set a static height for the content of the modal, if not provided the height will be calculated according to the children height (dynamically) |\n| onClose                       |                          | () =\u003e void                     | Callback called when the modal has been closed                                                                                                                       |\n| containerStyle                |                          | ViewStyle                      | Style of the container                                                                                                                                               |\n| dragIndicator                 | true                     | boolean                        | Show or not the dragging indicator at the top of the modal content                                                                                                   |\n| screenHeight                  | Dimension window height  | number                         | Use this props to overide the size in which the modal should work, useful if the modal should start after some elements which are at the bottom of the screen        |\n| disableBackgroundOpacity      | false                    | boolean                        | Disable the opacity applied on the background                                                                                                                        |\n| disableCloseOnBackgroundPress | false                    | boolean                        | If true then it will not close the modal when background is pressed                                                                                                  |\n| disableSnapToBottom           | false                    | boolean                        | If true the modal will not close when the user drag it down, instead it will snap to the `defaultModalHeight`                                                        |\n| backgroundClickable           | false                    | boolean                        | If true the background will be pressable, usually this prop should be used with `disableCloseOnBackgroundPress` \u0026 `disableBackgroundOpacity`                         |\n| onEndReached                  |                          | () =\u003e void                     | Function called when the end of the content is reached                                                                                                               |\n| onEndReachedThreshold         | 100                      | number                         | How far from the end in pixel the bottom edge of the content must be from the end of the content to trigger the `onEndReached` callback                              |\n\n## Example\n\nRunning the [example](example/App.tsx) app:\n\n```\ncd example \u0026\u0026 yarn\n```\n\nStarting the server:\n\n```\nyarn start\n```\n\nRunning the app on iOS:\n\n```\nyarn ios\n```\n\nRunning the app on Android:\n\n```\nyarn android\n```\n\n## Known issues\n\nAs the content is displayed inside a custom scroll view it is not possible to use flex, which shouldn't be necessary as demonstrate in the example app.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromancxx%2Freact-native-bottom-modal-scrollable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromancxx%2Freact-native-bottom-modal-scrollable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromancxx%2Freact-native-bottom-modal-scrollable/lists"}