{"id":17325451,"url":"https://github.com/intergalacticspacehighway/react-native-android-bottomsheet","last_synced_at":"2025-07-28T20:08:40.382Z","repository":{"id":60614813,"uuid":"543754992","full_name":"intergalacticspacehighway/react-native-android-bottomsheet","owner":"intergalacticspacehighway","description":"Native android BottomSheet view for React Native","archived":false,"fork":false,"pushed_at":"2022-10-03T12:55:09.000Z","size":475,"stargazers_count":28,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-24T00:43:22.159Z","etag":null,"topics":["bottomsheet","react-native"],"latest_commit_sha":null,"homepage":"","language":"Java","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/intergalacticspacehighway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-30T19:16:47.000Z","updated_at":"2024-06-30T06:41:45.000Z","dependencies_parsed_at":"2023-01-19T03:16:14.731Z","dependency_job_id":null,"html_url":"https://github.com/intergalacticspacehighway/react-native-android-bottomsheet","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/intergalacticspacehighway/react-native-android-bottomsheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intergalacticspacehighway%2Freact-native-android-bottomsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intergalacticspacehighway%2Freact-native-android-bottomsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intergalacticspacehighway%2Freact-native-android-bottomsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intergalacticspacehighway%2Freact-native-android-bottomsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intergalacticspacehighway","download_url":"https://codeload.github.com/intergalacticspacehighway/react-native-android-bottomsheet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intergalacticspacehighway%2Freact-native-android-bottomsheet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266878896,"owners_count":23999625,"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-07-24T02:00:09.469Z","response_time":99,"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":["bottomsheet","react-native"],"created_at":"2024-10-15T14:13:26.446Z","updated_at":"2025-07-28T20:08:40.346Z","avatar_url":"https://github.com/intergalacticspacehighway.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Android Bottomsheet\n\n## Why?\n\nThis library uses native [BottomsheetDialog](https://developer.android.com/reference/com/google/android/material/bottomsheet/BottomSheetDialog). Biggest wins are on [accessibility](https://twitter.com/nishanbende/status/1576071962186899456) without writing any custom code. Styling can also be customised.\n\n## Installation\n\n```\n// with npm\nnpm i react-native-android-bottomsheet\n\n// or with yarn\nyarn add react-native-android-bottomsheet\n```\n\n## API\n\n### Simple usage\n\n```jsx\nimport { BottomSheet } from 'react-native-android-bottomsheet';\n\n\u003cBottomSheet\n  peekHeight={400}\n  visible={visible}\n  onDismiss={() =\u003e {\n    setVisible(false);\n  }}\n\u003e\n  \u003cView\n    style={{\n      flex: 1,\n      backgroundColor: 'white',\n    }}\n  \u003e\n    \u003cText\u003eHello from bottomsheet\u003c/Text\u003e\n  \u003c/View\u003e\n\u003c/BottomSheet\u003e;\n```\n\n- BottomSheet has no background by default. So, setting `backgroundColor` on View is important.\n\n### BottomSheet with ScrollView\n\n```jsx\nimport { ScrollView } from 'react-native';\nimport { BottomSheet } from 'react-native-android-bottomsheet';\n\n\u003cBottomSheet\n  visible={visible}\n  onDismiss={() =\u003e {\n    setVisible(false);\n  }}\n\u003e\n  \u003cScrollView style={{ backgroundColor: 'white' }} nestedScrollEnabled\u003e\n    \u003cBoxes /\u003e\n  \u003c/ScrollView\u003e\n\u003c/BottomSheet\u003e;\n```\n\n- For drag-to-close/expand gesture to work, make sure to add `nestedScrollEnabled` to the ScrollView\n\n### BottomSheet with ScrollView and pull to refresh\n\n```jsx\nimport { ScrollView, RefreshControl } from 'react-native';\nimport { BottomSheet } from 'react-native-android-bottomsheet';\n\n\u003cBottomSheet\n  visible={visible}\n  onDismiss={() =\u003e {\n    setVisible(false);\n  }}\n\u003e\n  \u003cScrollView\n    style={{ backgroundColor: 'white' }}\n    refreshControl={\n      \u003cRefreshControl\n        onRefresh={() =\u003e {\n          setRefreshing(true);\n          setTimeout(() =\u003e {\n            setRefreshing(false);\n          }, 2000);\n        }}\n        refreshing={refreshing}\n      /\u003e\n    }\n  \u003e\n    \u003cBoxes /\u003e\n  \u003c/ScrollView\u003e\n\u003c/BottomSheet\u003e;\n```\n\n## Props\n\n```ts\ntype AndroidBottomsheetProps = {\n  // To show/hide bottomsheet\n  'visible': boolean;\n\n  // gets called when bottomsheet is dismissed. Use this to reset visible state\n  'onDismiss'?: () =\u003e void;\n\n  // Collapsed bottomsheet height\n  'peekHeight'?: number;\n\n  // Expanded bottomsheet height. Defaults to window height.\n  'maxHeight'?: number;\n\n  // Gets announced when bottomsheet is opened with TalkBack enabled\n  'aria-label'?: string;\n\n  // To set backdrop dim ammount. Accepts value 0 to 1. 0 would make the backdrop transparent.\n  'backdropDimAmount'?: number;\n\n  // Determines whether bottomsheet can be cancelled by swiping or back button\n  'cancelable'?: boolean;\n};\n```\n\n## To run examples\n\n- Clone the repo\n- Go to example/\n- yarn \u0026\u0026 yarn android\n\n\n## Todo\n\n- Fabric support\n- Customisable entry/exit transition\n- Backdrop color\n- Ability to remove Backdrop \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintergalacticspacehighway%2Freact-native-android-bottomsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintergalacticspacehighway%2Freact-native-android-bottomsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintergalacticspacehighway%2Freact-native-android-bottomsheet/lists"}