Repository: gorhom/react-native-bottom-sheet Branch: master Commit: b378f29ce961 Files: 327 Total size: 755.9 KB Directory structure: gitextract_h8ekz4ej/ ├── .gitattributes ├── .github/ │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_template.yaml │ │ └── feature_request.md │ ├── PULL_REQUEST_TEMPLATE.md │ └── workflows/ │ ├── auto-close.yml │ ├── label-sponsors.yml │ ├── stale.yml │ └── website.yml ├── .gitignore ├── .huskyrc.json ├── .release-it.json ├── .vscode/ │ └── settings.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── babel.config.js ├── biome.json ├── commitlint.config.js ├── example/ │ ├── .gitignore │ ├── App.tsx │ ├── app.json │ ├── babel.config.js │ ├── metro.config.js │ ├── package.json │ ├── src/ │ │ ├── Dev.tsx │ │ ├── Main.tsx │ │ ├── components/ │ │ │ ├── button/ │ │ │ │ ├── Button.tsx │ │ │ │ └── index.ts │ │ │ ├── contactItem/ │ │ │ │ ├── ContactItem.tsx │ │ │ │ └── index.ts │ │ │ ├── contactList/ │ │ │ │ ├── ContactList.tsx │ │ │ │ ├── index.ts │ │ │ │ ├── styles.ts │ │ │ │ └── styles.web.ts │ │ │ ├── customBackground/ │ │ │ │ ├── CustomBackground.tsx │ │ │ │ └── index.ts │ │ │ ├── customFooter/ │ │ │ │ ├── CustomFooter.tsx │ │ │ │ └── index.ts │ │ │ ├── customHandle/ │ │ │ │ ├── CustomHandle.tsx │ │ │ │ └── index.ts │ │ │ ├── headerHandle/ │ │ │ │ ├── HeaderHandle.tsx │ │ │ │ └── index.ts │ │ │ └── searchHandle/ │ │ │ ├── SearchHandle.tsx │ │ │ └── index.ts │ │ ├── screens/ │ │ │ ├── advanced/ │ │ │ │ ├── BackdropExample.tsx │ │ │ │ ├── CustomBackgroundExample.tsx │ │ │ │ ├── CustomHandleExample.tsx │ │ │ │ ├── CustomThemeExample.tsx │ │ │ │ ├── DynamicSizingExample.tsx │ │ │ │ ├── FooterExample.tsx │ │ │ │ ├── KeyboardHandlingExample.tsx │ │ │ │ ├── PullToRefreshExample.tsx │ │ │ │ └── ShadowExample.tsx │ │ │ ├── basic/ │ │ │ │ └── BasicExamples.tsx │ │ │ ├── index.ts │ │ │ ├── integrations/ │ │ │ │ ├── NativeScreensExample.tsx │ │ │ │ ├── ViewPagerExample.tsx │ │ │ │ ├── flashlist/ │ │ │ │ │ ├── FlashListExample.tsx │ │ │ │ │ ├── TweetContent.tsx │ │ │ │ │ ├── data/ │ │ │ │ │ │ └── tweets.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── models/ │ │ │ │ │ ├── Author.ts │ │ │ │ │ └── Tweet.ts │ │ │ │ ├── legendlist/ │ │ │ │ │ ├── LegendListExample.tsx │ │ │ │ │ ├── index.ts │ │ │ │ │ └── renderItem.tsx │ │ │ │ ├── map/ │ │ │ │ │ ├── BlurredBackground.tsx │ │ │ │ │ ├── BlurredHandle.tsx │ │ │ │ │ ├── LocationDetails.tsx │ │ │ │ │ ├── LocationDetailsBottomSheet.tsx │ │ │ │ │ ├── LocationItem.tsx │ │ │ │ │ ├── LocationListBottomSheet.tsx │ │ │ │ │ ├── MapExample.tsx │ │ │ │ │ └── Weather.tsx │ │ │ │ └── navigation/ │ │ │ │ ├── DummyScreen.tsx │ │ │ │ └── NavigatorExample.tsx │ │ │ ├── modal/ │ │ │ │ ├── BackdropExample.tsx │ │ │ │ ├── DetachedExample.tsx │ │ │ │ ├── DynamicSizingExample.tsx │ │ │ │ ├── SimpleExample.tsx │ │ │ │ ├── StackExample.tsx │ │ │ │ └── withModalProvider.tsx │ │ │ └── withGestureHandlerRoot.tsx │ │ ├── types.d.ts │ │ └── utilities/ │ │ ├── createMockData.ts │ │ └── transformOrigin.ts │ ├── tsconfig.json │ ├── web/ │ │ └── index.html │ └── webpack.config.js ├── lint-staged.config.js ├── mock.js ├── package.json ├── src/ │ ├── components/ │ │ ├── bottomSheet/ │ │ │ ├── BottomSheet.tsx │ │ │ ├── BottomSheetBody.tsx │ │ │ ├── BottomSheetContent.tsx │ │ │ ├── constants.ts │ │ │ ├── index.ts │ │ │ ├── styles.ts │ │ │ └── types.d.ts │ │ ├── bottomSheetBackdrop/ │ │ │ ├── BottomSheetBackdrop.tsx │ │ │ ├── constants.ts │ │ │ ├── index.ts │ │ │ ├── styles.ts │ │ │ └── types.d.ts │ │ ├── bottomSheetBackground/ │ │ │ ├── BottomSheetBackground.tsx │ │ │ ├── BottomSheetBackgroundContainer.tsx │ │ │ ├── index.ts │ │ │ ├── styles.ts │ │ │ └── types.d.ts │ │ ├── bottomSheetDebugView/ │ │ │ ├── BottomSheetDebugView.tsx │ │ │ ├── ReText.tsx │ │ │ ├── ReText.webx.tsx │ │ │ ├── index.ts │ │ │ ├── styles.ts │ │ │ └── styles.web.ts │ │ ├── bottomSheetDraggableView/ │ │ │ ├── BottomSheetDraggableView.tsx │ │ │ ├── index.ts │ │ │ └── types.d.ts │ │ ├── bottomSheetFooter/ │ │ │ ├── BottomSheetFooter.tsx │ │ │ ├── BottomSheetFooterContainer.tsx │ │ │ ├── index.ts │ │ │ ├── styles.ts │ │ │ └── types.d.ts │ │ ├── bottomSheetGestureHandlersProvider/ │ │ │ ├── BottomSheetGestureHandlersProvider.tsx │ │ │ ├── index.ts │ │ │ └── types.d.ts │ │ ├── bottomSheetHandle/ │ │ │ ├── BottomSheetHandle.tsx │ │ │ ├── BottomSheetHandleContainer.tsx │ │ │ ├── constants.ts │ │ │ ├── index.ts │ │ │ ├── styles.ts │ │ │ └── types.d.ts │ │ ├── bottomSheetHostingContainer/ │ │ │ ├── BottomSheetHostingContainer.tsx │ │ │ ├── index.ts │ │ │ ├── styles.ts │ │ │ ├── styles.web.ts │ │ │ └── types.d.ts │ │ ├── bottomSheetModal/ │ │ │ ├── BottomSheetModal.tsx │ │ │ ├── constants.ts │ │ │ ├── index.ts │ │ │ └── types.d.ts │ │ ├── bottomSheetModalProvider/ │ │ │ ├── BottomSheetModalProvider.tsx │ │ │ ├── index.ts │ │ │ └── types.d.ts │ │ ├── bottomSheetRefreshControl/ │ │ │ ├── BottomSheetRefreshControl.android.tsx │ │ │ ├── BottomSheetRefreshControl.tsx │ │ │ └── index.ts │ │ ├── bottomSheetScrollable/ │ │ │ ├── BottomSheetDraggableScrollable.tsx │ │ │ ├── BottomSheetFlashList.tsx │ │ │ ├── BottomSheetFlashList.web.tsx │ │ │ ├── BottomSheetFlatList.tsx │ │ │ ├── BottomSheetScrollView.tsx │ │ │ ├── BottomSheetSectionList.tsx │ │ │ ├── BottomSheetVirtualizedList.tsx │ │ │ ├── ScrollableContainer.android.tsx │ │ │ ├── ScrollableContainer.tsx │ │ │ ├── ScrollableContainer.web.tsx │ │ │ ├── createBottomSheetScrollableComponent.tsx │ │ │ ├── index.ts │ │ │ ├── styles.ts │ │ │ ├── types.d.ts │ │ │ └── useBottomSheetContentSizeSetter.ts │ │ ├── bottomSheetTextInput/ │ │ │ ├── BottomSheetTextInput.tsx │ │ │ ├── index.ts │ │ │ └── types.ts │ │ ├── bottomSheetView/ │ │ │ ├── BottomSheetView.tsx │ │ │ ├── index.ts │ │ │ ├── styles.ts │ │ │ └── types.d.ts │ │ └── touchables/ │ │ ├── Touchables.ios.tsx │ │ ├── Touchables.tsx │ │ └── index.ts │ ├── constants.ts │ ├── contexts/ │ │ ├── external.ts │ │ ├── gesture.ts │ │ ├── index.ts │ │ ├── internal.ts │ │ └── modal/ │ │ ├── external.ts │ │ └── internal.ts │ ├── hooks/ │ │ ├── index.ts │ │ ├── useAnimatedDetents.ts │ │ ├── useAnimatedKeyboard.ts │ │ ├── useAnimatedLayout.ts │ │ ├── useBottomSheet.ts │ │ ├── useBottomSheetContentContainerStyle.ts │ │ ├── useBottomSheetGestureHandlers.ts │ │ ├── useBottomSheetInternal.ts │ │ ├── useBottomSheetModal.ts │ │ ├── useBottomSheetModalInternal.ts │ │ ├── useBottomSheetScrollableCreator.tsx │ │ ├── useBottomSheetSpringConfigs.ts │ │ ├── useBottomSheetTimingConfigs.ts │ │ ├── useBoundingClientRect.ts │ │ ├── useGestureEventsHandlersDefault.tsx │ │ ├── useGestureEventsHandlersDefault.web.tsx │ │ ├── useGestureHandler.ts │ │ ├── usePropsValidator.ts │ │ ├── useReactiveSharedValue.ts │ │ ├── useScrollEventsHandlersDefault.ts │ │ ├── useScrollHandler.ts │ │ ├── useScrollHandler.web.ts │ │ ├── useScrollable.ts │ │ ├── useScrollableSetter.ts │ │ └── useStableCallback.ts │ ├── index.ts │ ├── types.d.ts │ └── utilities/ │ ├── animate.ts │ ├── clamp.ts │ ├── easingExp.ts │ ├── findNodeHandle.ts │ ├── findNodeHandle.web.ts │ ├── getKeyboardAnimationConfigs.ts │ ├── getRefNativeTag.web.ts │ ├── id.ts │ ├── index.ts │ ├── isFabricInstalled.ts │ ├── logger.ts │ ├── noop.ts │ ├── normalizeSnapPoint.ts │ ├── snapPoint.ts │ └── validateSnapPoint.ts ├── tsconfig.json └── website/ ├── .gitignore ├── README.md ├── babel.config.js ├── blog/ │ ├── 2021-08-30-bottom-sheet-v4.mdx │ ├── 2024-10-05-bottom-sheet-v5.mdx │ ├── authors.yml │ └── tags.yml ├── docs/ │ ├── components/ │ │ ├── bottomsheetbackdrop.md │ │ ├── bottomsheetflashlist.md │ │ ├── bottomsheetflatlist.md │ │ ├── bottomsheetfooter.md │ │ ├── bottomsheetscrollview.md │ │ ├── bottomsheetsectionlist.md │ │ ├── bottomsheettextinput.md │ │ ├── bottomsheetview.md │ │ └── bottomsheetvirtualizedlist.md │ ├── faq.md │ ├── guides/ │ │ ├── adding-shadow.mdx │ │ ├── custom-backdrop.mdx │ │ ├── custom-background.mdx │ │ ├── custom-footer.mdx │ │ ├── custom-handle.mdx │ │ ├── detach-modal.mdx │ │ ├── dynamic-sizing.mdx │ │ ├── keyboard-handling.mdx │ │ ├── pull-to-refresh.mdx │ │ ├── react-navigation.md │ │ └── web-support.mdx │ ├── hooks.md │ ├── index.md │ ├── methods.md │ ├── modal/ │ │ ├── hooks.md │ │ ├── index.mdx │ │ ├── methods.md │ │ ├── props.md │ │ └── usage.md │ ├── props.md │ ├── scrollables.md │ ├── troubleshooting.md │ └── usage.md ├── docusaurus.config.ts ├── package.json ├── sidebars.ts ├── src/ │ ├── css/ │ │ └── custom.css │ └── pages/ │ └── sponsors.mdx ├── static/ │ ├── .nojekyll │ ├── CNAME │ └── googled4a9e66f4b4d23d7.html ├── tsconfig.json ├── versioned_docs/ │ ├── version-2/ │ │ ├── faq.md │ │ ├── guides/ │ │ │ ├── adding-shadow.mdx │ │ │ ├── custom-backdrop.mdx │ │ │ ├── custom-background.mdx │ │ │ ├── custom-handle.mdx │ │ │ └── react-naigation.md │ │ ├── hooks.md │ │ ├── index.mdx │ │ ├── methods.md │ │ ├── modal/ │ │ │ ├── hooks.md │ │ │ ├── index.mdx │ │ │ ├── methods.md │ │ │ ├── props.md │ │ │ └── usage.md │ │ ├── props.md │ │ ├── scrollables.md │ │ ├── sidebars.ts │ │ ├── troubleshooting.md │ │ └── usage.md │ └── version-4/ │ ├── components/ │ │ ├── bottomsheetbackdrop.md │ │ ├── bottomsheetflatlist.md │ │ ├── bottomsheetfooter.md │ │ ├── bottomsheetscrollview.md │ │ ├── bottomsheetsectionlist.md │ │ ├── bottomsheettextinput.md │ │ ├── bottomsheetview.md │ │ └── bottomsheetvirtualizedlist.md │ ├── faq.md │ ├── guides/ │ │ ├── adding-shadow.mdx │ │ ├── custom-backdrop.mdx │ │ ├── custom-background.mdx │ │ ├── custom-footer.mdx │ │ ├── custom-handle.mdx │ │ ├── detach-modal.mdx │ │ ├── keyboard-handling.mdx │ │ ├── pull-to-refresh.mdx │ │ └── react-navigation.md │ ├── hooks.md │ ├── index.md │ ├── methods.md │ ├── modal/ │ │ ├── hooks.md │ │ ├── index.mdx │ │ ├── methods.md │ │ ├── props.md │ │ └── usage.md │ ├── props.md │ ├── scrollables.md │ ├── sidebars.ts │ ├── troubleshooting.md │ └── usage.md ├── versioned_sidebars/ │ ├── version-2-sidebars.json │ └── version-4-sidebars.json └── versions.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitattributes ================================================ *.pbxproj -text ================================================ FILE: .github/FUNDING.yml ================================================ # These are supported funding model platforms github: gorhom ================================================ FILE: .github/ISSUE_TEMPLATE/bug_template.yaml ================================================ name: Bug Report description: File a bug report. title: "[Bug]: " labels: ["bug", "triage"] body: - type: markdown attributes: value: | Thanks for taking the time to fill out this bug report! ⚠️ **Please note that issues that do not follow the template will be closed.** ## Environment Info - type: dropdown id: version attributes: label: Version description: What version of the library are you using? options: - v5 - v4 (deprecated) - v2 (deprecated) default: 0 validations: required: true - type: dropdown id: ra-version attributes: label: Reanimated Version description: What version of React Native Reanimated are you using? options: - v3 - v2 (deprecated) - v1 (deprecated) default: 0 validations: required: true - type: dropdown id: gh-version attributes: label: Gesture Handler Version description: What version of Gesture Handler are you using? options: - v2 - v1 (deprecated) default: 0 validations: required: true - type: dropdown id: platform attributes: label: Platforms description: What platform\s this bug is occurring on? multiple: true options: - iOS - Android - Web validations: required: true - type: textarea id: what-happened attributes: label: What happened? description: Please provide a clear and concise description of what the bug is? Include screenshots or gifs if needed. placeholder: Tell us what happened? validations: required: true - type: textarea id: repo-steps attributes: label: Reproduction steps description: You must provide a clear list of steps and code to reproduce the problem. placeholder: ex. - drag the bottom sheet... value: "- " validations: required: true - type: input id: snack attributes: label: Reproduction sample description: You must provide a reproduction sample code using **Expo Snack** [issue reproduction template](https://snack.expo.dev/@gorhom/bottom-sheet---issue-reproduction-template) placeholder: ex. https://snack.expo.dev/@gorhom/bottom-sheet---issue-reproduction-template validations: required: true - type: textarea id: logs attributes: label: Relevant log output description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. render: shell ================================================ FILE: .github/ISSUE_TEMPLATE/feature_request.md ================================================ --- name: Feature request about: Suggest an idea for this project title: '' labels: enhancement assignees: '' --- # Feature Request ## Why it is needed ## Possible implementation ### Code sample ================================================ FILE: .github/PULL_REQUEST_TEMPLATE.md ================================================ Please provide enough information so that others can review your pull request: ## Motivation Explain the **motivation** for making this change. What existing problem does the pull request solve? ================================================ FILE: .github/workflows/auto-close.yml ================================================ name: Auto Close Issue Workflow on: issues: types: - opened - reopened - edited env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} NUMBER: ${{ github.event.issue.number }} USER: ${{ github.event.issue.user.login }} REPO: "gorhom/react-native-bottom-sheet" jobs: autoclose: if: ${{ !contains(github.event.issue.body, 'snack.expo.dev') && !contains(github.event.issue.body, 'gorhom.dev')}} runs-on: ubuntu-latest permissions: issues: write steps: - name: Close Issue run: gh issue close "$NUMBER" --comment "Hello @$USER :wave:, this issue is being automatically closed and locked because it does not follow the issue template." --repo "$REPO" - name: Label Issue run: gh issue edit "$NUMBER" --add-label "invalid" --repo "$REPO" - name: Lock Issue run: gh issue lock "$NUMBER" -r "spam" --repo "$REPO" ================================================ FILE: .github/workflows/label-sponsors.yml ================================================ name: Label sponsors on: pull_request: types: [opened] issues: types: [opened] jobs: build: name: is-sponsor-label runs-on: ubuntu-latest steps: - uses: JasonEtco/is-sponsor-label-action@v1.2.0 with: label: sponsor env: GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} ================================================ FILE: .github/workflows/stale.yml ================================================ name: Mark stale issues and pull requests on: schedule: - cron: '39 9 * * *' jobs: stale: runs-on: ubuntu-latest permissions: issues: write pull-requests: write steps: - uses: actions/stale@v5.0.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.' close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' stale-issue-label: 'no-issue-activity' stale-pr-label: 'no-pr-activity' days-before-stale: 30 days-before-pr-stale: 30 days-before-close: 5 days-before-pr-close: 10 exempt-assignees: 'gorhom' exempt-issue-labels: 'sponsor' exempt-pr-labels: 'sponsor' ================================================ FILE: .github/workflows/website.yml ================================================ name: Deploy to GitHub Pages on: push: branches: - master paths: - 'website/**' jobs: build: name: Build Docusaurus runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-node@v4 with: node-version: 18 cache: yarn - name: Install dependencies working-directory: website run: yarn install --frozen-lockfile - name: Build website working-directory: website run: yarn build - name: Upload Build Artifact uses: actions/upload-pages-artifact@v3 with: path: website/build deploy: name: Deploy to GitHub Pages needs: build # Grant GITHUB_TOKEN the permissions required to make a Pages deployment permissions: pages: write # to deploy to Pages id-token: write # to verify the deployment originates from an appropriate source # Deploy to the github-pages environment environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 ================================================ FILE: .gitignore ================================================ # OSX # .DS_Store # XDE .expo/ # VSCode jsconfig.json # Xcode # build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata *.xccheckout *.moved-aside DerivedData *.hmap *.ipa *.xcuserstate project.xcworkspace # Android/IJ # .idea .gradle local.properties android.iml # Cocoapods # Pods/ # node.js # node_modules npm-debug.log yarn-debug.log yarn-error.log yarn.lock example/yarn.lock # BUCK buck-out/ \.buckd/ android/app/libs android/keystores/debug.keystore # generated by bob lib/ # Dependencies docs/node_modules # Production docs//build # Generated files docs/.docusaurus docs/.cache-loader # Misc docs/.DS_Store docs/.env.local docs/.env.development.local docs/.env.test.local docs/.env.production.local docs/npm-debug.log* docs/yarn-debug.log* docs/yarn-error.log* ================================================ FILE: .huskyrc.json ================================================ { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", "pre-commit": "lint-staged" } } ================================================ FILE: .release-it.json ================================================ { "git": { "push": true, "tagName": "v${version}", "commitMessage": "chore: release v${version}" }, "github": { "release": true }, "npm": { "publish": false }, "plugins": { "@release-it/conventional-changelog": { "preset": { "name": "conventionalcommits", "types": [ { "type": "feat", "section": "🚀 New Features" }, { "type": "fix", "section": "🐛 Bug Fixes" }, { "type": "chore", "section": "🧹 Maintenance Chores" }, { "type": "refactor", "section": "♻️ Code Refactor" } ] }, "infile": "CHANGELOG.md" } } } ================================================ FILE: .vscode/settings.json ================================================ { "editor.defaultFormatter": "biomejs.biome", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll.biome": "explicit", "source.organizeImports.biome": "explicit" }, "[typescriptreact]": { "editor.defaultFormatter": "biomejs.biome" }, "[javascript]": { "editor.defaultFormatter": "biomejs.biome" }, "[typescript]": { "editor.defaultFormatter": "biomejs.biome" }, "[json]": { "editor.defaultFormatter": "biomejs.biome" }, "[jsonc]": { "editor.defaultFormatter": "biomejs.biome" } } ================================================ FILE: CHANGELOG.md ================================================ # Changelog ## [5.2.8](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.2.7...v5.2.8) (2025-12-04) ### 🐛 Bug Fixes * **mock:** replace JSX syntax with `createElement` ([#2302](https://github.com/gorhom/react-native-bottom-sheet/issues/2302))(by [@huextrat](https://github.com/huextrat)) ([fdeff8f](https://github.com/gorhom/react-native-bottom-sheet/commit/fdeff8f289186672a14013e404d143922a9be232)) * removed deprecated Easing constant ([#2486](https://github.com/gorhom/react-native-bottom-sheet/issues/2486))(by [@joshua-zbni](https://github.com/joshua-zbni)) ([164d982](https://github.com/gorhom/react-native-bottom-sheet/commit/164d9828b40aeb18f52925731e9602db40c699a5)) ### 🧹 Maintenance Chores * updated example deps ([f3aa263](https://github.com/gorhom/react-native-bottom-sheet/commit/f3aa26310ea6ebc353031c17884e0f4b3a6a3f4d)) ## [5.2.7](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.2.6...v5.2.7) (2025-11-26) ### 🐛 Bug Fixes * fixed function undefined error in useBoundingClientRect ([#2561](https://github.com/gorhom/react-native-bottom-sheet/issues/2561))(by [@tylerdgenius](https://github.com/tylerdgenius), [@fab-nikhil](https://github.com/fab-nikhil), [@pinpong](https://github.com/pinpong)) ([3a99ee4](https://github.com/gorhom/react-native-bottom-sheet/commit/3a99ee4a2bc69ed280f045951edf4cfcf6bc6581)) ### 🧹 Maintenance Chores * updated ts tags for getBoundingClientRect ([6b22037](https://github.com/gorhom/react-native-bottom-sheet/commit/6b220371a4b591ac694cf1a8e16173f28ccdbba5)) ## [5.2.6](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.2.5...v5.2.6) (2025-09-05) ### 🐛 Bug Fixes * **#2452:** prevented the bottom sheet from snapping to -1 when resizing the detent while keyboard is open([#2327](https://github.com/gorhom/react-native-bottom-sheet/issues/2327))(by [@pakerwreah](https://github.com/pakerwreah)) ([c68edac](https://github.com/gorhom/react-native-bottom-sheet/commit/c68edacf50b76ca08ac599a8485a533c710c6289)), closes [#2452](https://github.com/gorhom/react-native-bottom-sheet/issues/2452) * prevent the bottom sheet from closing when over dragging while keyboard is open ([cce1f7e](https://github.com/gorhom/react-native-bottom-sheet/commit/cce1f7e0cc1b0d3c2a0014ba17624f8671816e15)) ## [5.2.5](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.2.4...v5.2.5) (2025-09-04) ### 🐛 Bug Fixes * **#2449:** adjust next index to current index when animating to a temporary position ([20de151](https://github.com/gorhom/react-native-bottom-sheet/commit/20de1513f571e079d243da9f3bbf3688f10acf7b)), closes [#2449](https://github.com/gorhom/react-native-bottom-sheet/issues/2449) * **#2449:** adjust next index to the highest detent index when animating by keyboard ([f8cd4fe](https://github.com/gorhom/react-native-bottom-sheet/commit/f8cd4fe37c1b05abd4153f586d61658a3d7954b8)), closes [#2449](https://github.com/gorhom/react-native-bottom-sheet/issues/2449) * conditionally apply web-only cursor style to avoid TypeScript error ([#2420](https://github.com/gorhom/react-native-bottom-sheet/issues/2420))(by [@kirstilynn](https://github.com/kirstilynn)) ([e5c077b](https://github.com/gorhom/react-native-bottom-sheet/commit/e5c077b9cc630d256ca8d9a895a35b1989394d7a)) ### 🧹 Maintenance Chores * updated the example deps ([c9e0473](https://github.com/gorhom/react-native-bottom-sheet/commit/c9e0473f097d61d467449b68af1170e58267136a)) ## [5.2.4](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.2.3...v5.2.4) (2025-08-28) ### 🐛 Bug Fixes * **#2430:** fixed flickering issue with animation by keyboard ([334e94c](https://github.com/gorhom/react-native-bottom-sheet/commit/334e94c5ffd700261201c07bd153711d38b09ef6)) * **#2430:** fixed the force closing when switching between two text inputs ([086baed](https://github.com/gorhom/react-native-bottom-sheet/commit/086baeda48be71b9b8d020e1b680573a92218b18)) * **#2431:** added handling for evaluating position for detent change while animating ([090afa6](https://github.com/gorhom/react-native-bottom-sheet/commit/090afa64338e27882ae4c32b090e9ce72a2ba38a)), closes [#2431](https://github.com/gorhom/react-native-bottom-sheet/issues/2431) * memoized the scrollable creator hook ([e51e523](https://github.com/gorhom/react-native-bottom-sheet/commit/e51e52382ee561a2db6022af36ab5181e07c8042)) ### 🧹 Maintenance Chores * updated biome dep ([eb03ab0](https://github.com/gorhom/react-native-bottom-sheet/commit/eb03ab074dc17df9c3ff404f645db3bfbc0c6aab)) ## [5.2.3](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.2.2...v5.2.3) (2025-08-18) ## [5.2.2](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.2.1...v5.2.2) (2025-08-18) ### 🐛 Bug Fixes * **#2364:** fixed layouting issue when dynamic sizing enabled and handle is not provided ([d3275b1](https://github.com/gorhom/react-native-bottom-sheet/commit/d3275b1e97ab7ed975cc28ddcfaa2ffb25624c98)) ## [5.2.1](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.2.0...v5.2.1) (2025-08-18) ### 🐛 Bug Fixes * **#2418:** updated nullability check for highestDetentPosition ([b51ea61](https://github.com/gorhom/react-native-bottom-sheet/commit/b51ea619a2c36d5a2514ad00a43928e206db0512)), closes [#2418](https://github.com/gorhom/react-native-bottom-sheet/issues/2418) ## [5.2.0](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.1.8...v5.2.0) (2025-08-17) ### 🚀 New Features * added a scrollable creator hook to allow integrate with third party list libraries ([d6250e2](https://github.com/gorhom/react-native-bottom-sheet/commit/d6250e20b19801c5ea50af3e369904ebb90eb7b9)) ### 🐛 Bug Fixes * **#2356:** added missing dependencies to callback hooks ([#2382](https://github.com/gorhom/react-native-bottom-sheet/issues/2382)) ([dfaec13](https://github.com/gorhom/react-native-bottom-sheet/commit/dfaec131efde3126f6ff11e2fd409fd94864ef8c)), closes [#2356](https://github.com/gorhom/react-native-bottom-sheet/issues/2356) [#2356](https://github.com/gorhom/react-native-bottom-sheet/issues/2356) ### 🧹 Maintenance Chores * updated animated layout hook default return ([99efdd7](https://github.com/gorhom/react-native-bottom-sheet/commit/99efdd77c49db49039afabb14a8d34cd68764afc)) * updated example deps ([248ddd9](https://github.com/gorhom/react-native-bottom-sheet/commit/248ddd97a098627773114d1784c3abb0c5bd028e)) * updated examples ([eb95f3a](https://github.com/gorhom/react-native-bottom-sheet/commit/eb95f3a65e7a7ecd6b317b9e2a28df79780215c7)) * updated types ([a123b17](https://github.com/gorhom/react-native-bottom-sheet/commit/a123b179e3fd86c54b601f9caf2f1f936a79b187)) ### ♻️ Code Refactor * added isForcedClosing to animation state ([ab97f77](https://github.com/gorhom/react-native-bottom-sheet/commit/ab97f7755683ff2553e4daaee471fc6db6adf2ee)) * optimise animation state ([63dc473](https://github.com/gorhom/react-native-bottom-sheet/commit/63dc4733c20e7d9dd4b1f8a5a80894a8395420b8)) * optimise keyboard state, and remove redundant variables ([bd6c8c6](https://github.com/gorhom/react-native-bottom-sheet/commit/bd6c8c66f5617e0c398047a3c0934ab75105b17a)) * optimise layout state ([4dfe07a](https://github.com/gorhom/react-native-bottom-sheet/commit/4dfe07a1a49e5e7a2faf339535d2dc7678f71323)) * optimise next position state ([3d6add6](https://github.com/gorhom/react-native-bottom-sheet/commit/3d6add6d8e9570165241c0c801953c72b47c2921)) * optimise scrollable state ([bacca9d](https://github.com/gorhom/react-native-bottom-sheet/commit/bacca9d024df6be1157e19a607b85ded84d69b7e)) * optimise snap points/detents state ([5de7bd3](https://github.com/gorhom/react-native-bottom-sheet/commit/5de7bd343492d7f0ac978502431a1465e2d7299c)) * removed isContentHeightFixed shared value ([e26426a](https://github.com/gorhom/react-native-bottom-sheet/commit/e26426a17e4793b7749d337fc549d118db0111f2)) * removed next position animated value ([b81a1fd](https://github.com/gorhom/react-native-bottom-sheet/commit/b81a1fd31641b4440754be70c5007add418621b7)) ## [5.1.8](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.1.6...v5.1.8) (2025-07-27) ### Bug Fixes * added support for reanimated v4 ([#2223](https://github.com/gorhom/react-native-bottom-sheet/issues/2223))(by [@skusnierz](https://github.com/skusnierz)) ([d96a18e](https://github.com/gorhom/react-native-bottom-sheet/commit/d96a18eb113739bb7707e2f61e17ece2afb3b174)) * migrate from `useWorkletCallback` ([#2356](https://github.com/gorhom/react-native-bottom-sheet/issues/2356))(by [@tomekzaw](https://github.com/tomekzaw)) ([3620972](https://github.com/gorhom/react-native-bottom-sheet/commit/3620972160f987b4437c06927a9ab768fbffe843)) ## [5.1.7](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.1.6...v5.1.7) (2025-07-27) ## [5.1.6](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.1.5...v5.1.6) (2025-06-03) ### Bug Fixes * **#2267:** early exit when attempting to snap to index while layout is not ready ([0715f03](https://github.com/gorhom/react-native-bottom-sheet/commit/0715f0384a187cdb1df903d693666ac4b12db807)), closes [#2267](https://github.com/gorhom/react-native-bottom-sheet/issues/2267) * **#2278:** removed flashlist for web ([e17096f](https://github.com/gorhom/react-native-bottom-sheet/commit/e17096feade145f9e6349815398f8aaae758d554)), closes [#2278](https://github.com/gorhom/react-native-bottom-sheet/issues/2278) * added positions to onAnimate, and prevent index to be negative with keyboard animations ([#2271](https://github.com/gorhom/react-native-bottom-sheet/issues/2271))(by [@souyahia](https://github.com/souyahia)) ([898270e](https://github.com/gorhom/react-native-bottom-sheet/commit/898270e62e0f83c8f8df671a60d6aabe749d890e)) * allow bottom sheet view to resize it self when its content resized ([5397478](https://github.com/gorhom/react-native-bottom-sheet/commit/53974786a18aceab1cc15def1b29c94ef93002e3)) * updated BottomSheetModal mock, add createBottomSheetScrollableComponent and enum mocks ([#2265](https://github.com/gorhom/react-native-bottom-sheet/issues/2265))(by [@gabimoncha](https://github.com/gabimoncha)) ([a77904a](https://github.com/gorhom/react-native-bottom-sheet/commit/a77904ac935278bec4e086700e1e93baa54282b6)) ## [5.1.5](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.1.4...v5.1.5) (2025-05-26) ### Bug Fixes * **#2237:** fixed node handle lookup for virtualized list on web (by [@btoo](https://github.com/btoo)) ([6442b0e](https://github.com/gorhom/react-native-bottom-sheet/commit/6442b0ea54a38d8dcb82f63aade077ead29d382b)) * **#2288:** added unique id to the root bottom sheet modal portal ([711ea7a](https://github.com/gorhom/react-native-bottom-sheet/commit/711ea7a5290ef485b9ba5c65eb45e28d6e495b43)), closes [#2288](https://github.com/gorhom/react-native-bottom-sheet/issues/2288) * fixed initial content height calculation on web ([4db946e](https://github.com/gorhom/react-native-bottom-sheet/commit/4db946e4af331bb2d3a80002ee6051da9f3593eb)) * prevent canceling touchmove events when not cancelable ([#2244](https://github.com/gorhom/react-native-bottom-sheet/issues/2244))(by [@erickreutz](https://github.com/erickreutz)) ([14d5d1e](https://github.com/gorhom/react-native-bottom-sheet/commit/14d5d1e89f22b5101445799fd0cb836ecb7c4882)) * provide the portal host name with use portal ([67e9097](https://github.com/gorhom/react-native-bottom-sheet/commit/67e909711164aba900c2764034723c8b0e051704)) ## [5.1.4](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.1.3...v5.1.4) (2025-05-04) ### Bug Fixes * **#2237:** fixed recursive loop in findNodeHandle.web (by @TNAJanssen) ([3556ba8](https://github.com/gorhom/react-native-bottom-sheet/commit/3556ba8e1445a78dfc6cfc93997500d52a03368e)) ## [5.1.3](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.1.2...v5.1.3) (2025-05-04) ### Bug Fixes * **#2237:** updated findNodeHandle for web to support React 19 ([47a95f5](https://github.com/gorhom/react-native-bottom-sheet/commit/47a95f517ab5b4680d0f5a45b09464911aafd35e)), closes [#2237](https://github.com/gorhom/react-native-bottom-sheet/issues/2237) ## [5.1.2](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.1.1...v5.1.2) (2025-03-09) ### Bug Fixes * **#2163:** restart closing animation when container height get updated ([4ed9f3c](https://github.com/gorhom/react-native-bottom-sheet/commit/4ed9f3cb542316a984893efa2025ca5384ffe89a)), closes [#2163](https://github.com/gorhom/react-native-bottom-sheet/issues/2163) * **#2177:** set absolute fill to backdrop default style ([979ba7c](https://github.com/gorhom/react-native-bottom-sheet/commit/979ba7ce0b9d69abfaefd169ee692bf818fa4d0d)), closes [#2177](https://github.com/gorhom/react-native-bottom-sheet/issues/2177) ## [5.1.1](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.1.0...v5.1.1) (2025-02-09) ### Bug Fixes * **#2043:** handle unnecessary invocation of index side effect ([#2073](https://github.com/gorhom/react-native-bottom-sheet/issues/2073))(inspired by @IslamRustamov) ([2164c02](https://github.com/gorhom/react-native-bottom-sheet/commit/2164c02e63177f9ac69acc05722c85e8d55cd931)), closes [#2043](https://github.com/gorhom/react-native-bottom-sheet/issues/2043) # [5.1.0](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.0.6...v5.1.0) (2025-02-06) ### Bug Fixes * **#2129:** fixed initial isAnimatedOnMount value ([0850cb8](https://github.com/gorhom/react-native-bottom-sheet/commit/0850cb864819f79189592cb66c2b6d179957ba61)) ### Features * added enableBlurKeyboardOnGesture prop to handle blurring keyboard on gesture ([1c31aca](https://github.com/gorhom/react-native-bottom-sheet/commit/1c31acad50a7c171548ea7f4594a4d1d563cf40f)) ## [5.0.6](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.0.5...v5.0.6) (2024-11-17) ### Bug Fixes * clipped views when keyboard is closing ([2320a81](https://github.com/gorhom/react-native-bottom-sheet/commit/2320a81f95e696e22debe5a823740f51fadae0f6)) * removed keyboard height setting from hide event ([61473b5](https://github.com/gorhom/react-native-bottom-sheet/commit/61473b56c3389e5ac9edfeb1dc4b93907e3b5d05)) * updated useStableCallback to set callback in ref without useEffect ([#2010](https://github.com/gorhom/react-native-bottom-sheet/issues/2010))(by [@pavel-krasnov](https://github.com/pavel-krasnov)) ([e898859](https://github.com/gorhom/react-native-bottom-sheet/commit/e89885936391f5ce106983d8aac814bcb422e82c)) * useStableCallback implementation ([87a73c5](https://github.com/gorhom/react-native-bottom-sheet/commit/87a73c59b83ef0b3868c12403a467ea3aebf0dd5)) ## [5.0.5](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.0.4...v5.0.5) (2024-10-26) ### Bug Fixes * **#1983:** updated shared values access as hook dependancies ([#1992](https://github.com/gorhom/react-native-bottom-sheet/issues/1992))(by [@pinpong](https://github.com/pinpong)) ([9757bd2](https://github.com/gorhom/react-native-bottom-sheet/commit/9757bd251cba67cf26489640f20fd1557b1a426e)), closes [#1983](https://github.com/gorhom/react-native-bottom-sheet/issues/1983) [#1983](https://github.com/gorhom/react-native-bottom-sheet/issues/1983) * added BottomSheetFlashList mock ([#1988](https://github.com/gorhom/react-native-bottom-sheet/issues/1988))(by @Fadikk367) ([13c7d47](https://github.com/gorhom/react-native-bottom-sheet/commit/13c7d47beae6f2451968d30e862f0ea49b7199b6)) ## [5.0.4](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.0.3...v5.0.4) (2024-10-20) ### Bug Fixes * **#1983:** updated shared values access as hook dependancies ([ae41b2d](https://github.com/gorhom/react-native-bottom-sheet/commit/ae41b2da650d2be614d840fbdfe1d29db6d7a575)), closes [#1983](https://github.com/gorhom/react-native-bottom-sheet/issues/1983) * **#1987:** updated provided style handling for bottom sheet view ([4c8ae25](https://github.com/gorhom/react-native-bottom-sheet/commit/4c8ae252b8ec0bb420b60f8314cc7f04ed12b519)), closes [#1987](https://github.com/gorhom/react-native-bottom-sheet/issues/1987) ## [5.0.3](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.0.2...v5.0.3) (2024-10-20) ### Bug Fixes * added children type to containerComponent prop type ([#1971](https://github.com/gorhom/react-native-bottom-sheet/issues/1971))(by @Nodonisko) ([203e52f](https://github.com/gorhom/react-native-bottom-sheet/commit/203e52fa5be3e167522776f184d79511bdf35344)) * dynamic sizing with detached static views ([b72e275](https://github.com/gorhom/react-native-bottom-sheet/commit/b72e27519c36671d84973f8b0b9cd1f8a7a8b8c1)) * fixed dynamic scrollables content size with footer in place ([ace0da7](https://github.com/gorhom/react-native-bottom-sheet/commit/ace0da7475d68d4f27d386ead9f71c2eb19fbe31)) * updated reduce motion handling, to respeact user setting and allow overriding ([1ef05c7](https://github.com/gorhom/react-native-bottom-sheet/commit/1ef05c7fee821c356220452ccf61d33d29483c00)) ## [5.0.2](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.0.1...v5.0.2) (2024-10-14) ### Bug Fixes * **#1035,#1043:** updated default animatedNextPositionIndex to INITIAL_VALUE ([#1960](https://github.com/gorhom/react-native-bottom-sheet/issues/1960))(by [@dfalling](https://github.com/dfalling)) ([1cf3e41](https://github.com/gorhom/react-native-bottom-sheet/commit/1cf3e4167f2ffacf36c7abebb527f79048754121)), closes [#1035](https://github.com/gorhom/react-native-bottom-sheet/issues/1035) [#1043](https://github.com/gorhom/react-native-bottom-sheet/issues/1043) * **#1968:** moved the flashlist optional import into the component body ([ab33e21](https://github.com/gorhom/react-native-bottom-sheet/commit/ab33e2132f8e6fdb4a3c36e34c0f2ff04e09f11f)), closes [#1968](https://github.com/gorhom/react-native-bottom-sheet/issues/1968) ## [5.0.1](https://github.com/gorhom/react-native-bottom-sheet/compare/v5.0.0...v5.0.1) (2024-10-14) ### Bug Fixes * removed redundant dependency ([3ffc7f7](https://github.com/gorhom/react-native-bottom-sheet/commit/3ffc7f70e8769fc1ecc39754111754b53d12bff8)) # [5.0.0](https://github.com/gorhom/react-native-bottom-sheet/compare/v4.6.4...v5.0.0) (2024-10-13) ### Features * added web support (#1150) ([`a996b4a`](https://github.com/gorhom/react-native-bottom-sheet/commit/a996b4aa68139136ec75e0921025d235471c838d)) * added flashlist as a scrollable ([9bf39ed](https://github.com/gorhom/react-native-bottom-sheet/commit/9bf39ed08d7377937b0e8b8af65791b178c06492)) * rewrite gesture apis with gesture handler 2 (#1126) ([`6a4d296`](https://github.com/gorhom/react-native-bottom-sheet/commit/6a4d2967684b01e28f23b1b35afbb4cc4dabaf1d)) * added accessibility overrides support ([#1288](https://github.com/gorhom/react-native-bottom-sheet/issues/1288))(by @Mahmoud-SK) ([6203c18](https://github.com/gorhom/react-native-bottom-sheet/commit/6203c18acc9f8dc3a31af5bf5ad80e368deceb52)) * added default dynamic sizing ([#1513](https://github.com/gorhom/react-native-bottom-sheet/issues/1513))(with @Eli-Nathan & [@ororsatti](https://github.com/ororsatti)) ([#1683](https://github.com/gorhom/react-native-bottom-sheet/issues/1683)) ([8017fb6](https://github.com/gorhom/react-native-bottom-sheet/commit/8017fb6b02088d3c66c64a8a23e0f63f22884d36)) * added a new bottom sheet stack behaviour `replace` ([#1897](https://github.com/gorhom/react-native-bottom-sheet/issues/1897))(with [@janodetzel](https://github.com/janodetzel)) ([997d794](https://github.com/gorhom/react-native-bottom-sheet/commit/997d794ccffe8739268ec50dfecca624e10f8752)) ### Bug Fixes * addressed an edge case with scrollview content sizing on initial rendering on safari ([d1226b7](https://github.com/gorhom/react-native-bottom-sheet/commit/d1226b70ac2405b4a98c8e5be6cee94ae110a35b)) * replaced deprecated reanimated Extrapolate with Extrapolation ([#1875](https://github.com/gorhom/react-native-bottom-sheet/issues/1875))(by [@cenksari](https://github.com/cenksari)) ([5af3e80](https://github.com/gorhom/react-native-bottom-sheet/commit/5af3e803b0313154f42fbadba7dae6d32719c01c)) * updated animation sequencing to respect force closing by user ([#1941](https://github.com/gorhom/react-native-bottom-sheet/issues/1941)) ([e4f3fe3](https://github.com/gorhom/react-native-bottom-sheet/commit/e4f3fe339b20a28d8573fa31f0d1b85be3ef2085)) * updated the enable content panning gesture logic ([2962a2d](https://github.com/gorhom/react-native-bottom-sheet/commit/2962a2d5326e517a48fe11d0e0d762beacca890d)) * updated the scrollable locking logic while scrolling ([#1939](https://github.com/gorhom/react-native-bottom-sheet/issues/1939)) ([d2b959c](https://github.com/gorhom/react-native-bottom-sheet/commit/d2b959c1f25f1aaeed1b30d21c43809c72490ef3)) * updated the keyboard handling for Android with keyboard input mode resize ([08db4ab](https://github.com/gorhom/react-native-bottom-sheet/commit/08db4ab4b0058955e9ee2d55f87da8fefb5390ad)) * replace getRefNativeTag with findNodeHandle ([#1823](https://github.com/gorhom/react-native-bottom-sheet/issues/1823))(by @AndreiCalazans) ([866b4ee](https://github.com/gorhom/react-native-bottom-sheet/commit/866b4ee570fc345d59053561c26af67144e8fd6f)) * **BottomSheetContainer:** cannot add new property 'value' ([#1808](https://github.com/gorhom/react-native-bottom-sheet/issues/1808))(by @MoritzCooks) ([ccd6bb5](https://github.com/gorhom/react-native-bottom-sheet/commit/ccd6bb540884f35fb9c0dcd5527ed8bac0c1be91)) * added error message when dynamic sizing enabled with a wrong children type ([8b62dca](https://github.com/gorhom/react-native-bottom-sheet/commit/8b62dca06752a3c047162a693a75173a7c701e3e)) * bottom sheet not appearing for users that have reduced motion turned on ([#1743](https://github.com/gorhom/react-native-bottom-sheet/issues/1743))(by [@fobos531](https://github.com/fobos531)) ([9b4ef4d](https://github.com/gorhom/react-native-bottom-sheet/commit/9b4ef4dabb7ce1f846ae90e2bab39fa9354ff125)) * fixed the mount animation with reduce motion enabled ([#1560](https://github.com/gorhom/react-native-bottom-sheet/issues/1560), [#1674](https://github.com/gorhom/react-native-bottom-sheet/issues/1674)) ([6efd8ae](https://github.com/gorhom/react-native-bottom-sheet/commit/6efd8aeb0e312555fa77609869eedbf46a4a04b3)) * added BottomSheetTextInput to the mock file ([#1698](https://github.com/gorhom/react-native-bottom-sheet/issues/1698))(by [@ghorbani-m](https://github.com/ghorbani-m)) ([dee95e5](https://github.com/gorhom/react-native-bottom-sheet/commit/dee95e5b161d78b0aae34d85abea3d8042417892)) * added footer height to content height when using dynamic sizing ([#1725](https://github.com/gorhom/react-native-bottom-sheet/issues/1725)) ([5009085](https://github.com/gorhom/react-native-bottom-sheet/commit/50090859f9e50932c641df5b0d6f91cc9f3b5bad)) * added missing mock of Touchables ([#1700](https://github.com/gorhom/react-native-bottom-sheet/issues/1700))(by [@jaworek](https://github.com/jaworek)) ([a6f44c0](https://github.com/gorhom/react-native-bottom-sheet/commit/a6f44c01ef8f1b9154ce2313614daf075567f641)) * added support for web without Babel/SWC ([#1741](https://github.com/gorhom/react-native-bottom-sheet/issues/1741))(by [@joshsmith](https://github.com/joshsmith)) ([d620494](https://github.com/gorhom/react-native-bottom-sheet/commit/d620494877e98f4331d8c0a1cb7d375abb06db60)) * fixed the backdrop tap gesture on web ([#1446](https://github.com/gorhom/react-native-bottom-sheet/issues/1446)) ([b0792de](https://github.com/gorhom/react-native-bottom-sheet/commit/b0792dea5ec605b449d40037cbecfd35bf0ff066)) * allowed content max height be applied for dynamic sizing ([57c196c](https://github.com/gorhom/react-native-bottom-sheet/commit/57c196cfdf2f63622fb5ea8d6d32cf21b9dd9367)) * dismiss all action for modals ([#1529](https://github.com/gorhom/react-native-bottom-sheet/issues/1529))(by [@david-gomes5](https://github.com/david-gomes5)) ([17269f1](https://github.com/gorhom/react-native-bottom-sheet/commit/17269f1f55b91f33cec24870ebe00f2510888a4b)) * fixed position x index sequencing with container resizing ([#1675](https://github.com/gorhom/react-native-bottom-sheet/issues/1675)) ([f0ec705](https://github.com/gorhom/react-native-bottom-sheet/commit/f0ec705cd74ea6e31614ab12c0b4fdc097d3820d)) * prevent updating backdrop state when unmounting ([#1657](https://github.com/gorhom/react-native-bottom-sheet/issues/1657))(by [@christophby](https://github.com/christophby)) ([d746d85](https://github.com/gorhom/react-native-bottom-sheet/commit/d746d85b92e2bdb4351ea4d3fde140e3199ac671)) * **web:** use absolute positioning for BottomSheetContainer in web ([#1597](https://github.com/gorhom/react-native-bottom-sheet/issues/1597)) ([d6e3dc9](https://github.com/gorhom/react-native-bottom-sheet/commit/d6e3dc9b327b840895c875dcf016fb5c80a62915)) * (BottomSheetTextInput): reset shouldHandleKeyboardEvents on unmount (#1495)(by @koplyarov) ([`81cd66f`](https://github.com/gorhom/react-native-bottom-sheet/commit/81cd66f9c49843e43231d1d81ec4aa518a9f1b95)) * updated containerOffset top value to default to 0 (#1420)(by @beqramo) ([`b81cb93`](https://github.com/gorhom/react-native-bottom-sheet/commit/b81cb9368b55c24703a9c000a76e89a2d253e141)) * resume close animation when container gets resized (#1374) (#1392) ([`1f69625`](https://github.com/gorhom/react-native-bottom-sheet/commit/1f69625e180fcec4d8d3dec436f8d5bb4eba476b)) * (bottom-sheet-modal): added container component prop to modal (#1309)(by @magrinj) ([`67e1e09`](https://github.com/gorhom/react-native-bottom-sheet/commit/67e1e09acbc0e96e435a0c2247fa1e0bc19f91aa)) * updated scrollables mocks with ReactNative list equivalent (#1394)(by @gkueny) ([`630f87f`](https://github.com/gorhom/react-native-bottom-sheet/commit/630f87ff6bd19c4dfc071783139c938eda3baf6c)) * crash on swipe down (#1367)(by @beqramo) ([`3ccbefc`](https://github.com/gorhom/react-native-bottom-sheet/commit/3ccbefc4d16558867d518f7e0306fbb4d1dbdbeb)) * (BottomSheetScrollView): updated scroll responders props type (#1335)(by @eps1lon) ([`e42fafc`](https://github.com/gorhom/react-native-bottom-sheet/commit/e42fafcc492d01665c296bf551a6a264eb866fc5)) * fixed keyboard dismissing issue with Reanimated v3 (#1346)(by @janicduplessis) ([`1d1a464`](https://github.com/gorhom/react-native-bottom-sheet/commit/1d1a46489bede1d3f119df2fb6f467e778461c39)) - (#1119): fixed race condition between onmount and keyboard animations ([`a1ec74d`](https://github.com/gorhom/react-native-bottom-sheet/commit/a1ec74dbbc85476bb39f3637e9a97214e0cad9a0)) #### Chores And Housekeeping * updated expo and react native deps (#1445) ([`f6f2304`](https://github.com/gorhom/react-native-bottom-sheet/commit/f6f2304235c05f92d86ce8083caf910b9297a10a)) * updated react native and other deps (#1412) ([`549e461`](https://github.com/gorhom/react-native-bottom-sheet/commit/549e461530a91e1d7c95a5178bd2238ebf84df86)) * fixed types (#1123)(by @stropho) ([`b440964`](https://github.com/gorhom/react-native-bottom-sheet/commit/b44096451d4fed81be7f08b0edf638e4a1c42ccd)) * updated reanimated to v3 (#1324) ([`4829316`](https://github.com/gorhom/react-native-bottom-sheet/commit/4829316beeff95c9e2efa5fbfdfcf7ef37b4af60)) ================================================ FILE: CODE_OF_CONDUCT.md ================================================ # Contributor Covenant Code of Conduct ## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. ## Our Standards Examples of behavior that contributes to a positive environment for our community include: * Demonstrating empathy and kindness toward other people * Being respectful of differing opinions, viewpoints, and experiences * Giving and gracefully accepting constructive feedback * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience * Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: * The use of sexualized language or imagery, and sexual attention or advances of any kind * Trolling, insulting or derogatory comments, and personal or political attacks * Public or private harassment * Publishing others' private information, such as a physical or email address, without their explicit permission * Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. ## Scope This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [@gorhom](https://twitter.com/gorhom) on twitter. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident. ## Enforcement Guidelines Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: ### 1. Correction **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. ### 2. Warning **Community Impact**: A violation through a single incident or series of actions. **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. ### 3. Temporary Ban **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. ### 4. Permanent Ban **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. **Consequence**: A permanent ban from any sort of public interaction within the community. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). [homepage]: https://www.contributor-covenant.org For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. ================================================ FILE: CONTRIBUTING.md ================================================ # Contributing We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project. ## Development workflow To get started with the project, run `yarn bootstrap` in the root directory to install the required dependencies for each package: ```sh yarn bootstrap ``` While developing, you can run the [example app](/example/) to test your changes. To start the packager: ```sh yarn example start ``` To run the example app on Android: ```sh yarn example android ``` To run the example app on iOS: ```sh yarn example android ``` Make sure your code passes TypeScript and ESLint. Run the following to verify: ```sh yarn typescript yarn lint ``` To fix formatting errors, run the following: ```sh yarn lint --fix ``` Remember to add tests for your change if possible. Run the unit tests by: ```sh yarn test ``` ### Commit message convention We follow the [conventional commits specification](https://www.conventionalcommits.org/en) for our commit messages: - `fix`: bug fixes, e.g. fix crash due to deprecated method. - `feat`: new features, e.g. add new method to the module. - `refactor`: code refactor, e.g. migrate from class components to hooks. - `docs`: changes into documentation, e.g. add usage example for the module.. - `test`: adding or updating tests, eg add integration tests using detox. - `chore`: tooling changes, e.g. change CI config. Our pre-commit hooks verify that your commit message matches this format when committing. ### Linting and tests [ESLint](https://eslint.org/), [Prettier](https://prettier.io/), [TypeScript](https://www.typescriptlang.org/) We use [TypeScript](https://www.typescriptlang.org/) for type checking, [ESLint](https://eslint.org/) with [Prettier](https://prettier.io/) for linting and formatting the code, and [Jest](https://jestjs.io/) for testing. Our pre-commit hooks verify that the linter and tests pass when committing. ### Scripts The `package.json` file contains various scripts for common tasks: - `yarn bootstrap`: setup project by installing all dependencies and pods. - `yarn typescript`: type-check files with TypeScript. - `yarn lint`: lint files with ESLint. - `yarn test`: run unit tests with Jest. - `yarn example start`: start the Metro server for the example app. - `yarn example android`: run the example app on Android. - `yarn example ios`: run the example app on iOS. ### Sending a pull request > **Working on your first pull request?** You can learn how from this _free_ series: [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github). When you're sending a pull request: - Prefer small pull requests focused on one change. - Verify that linters and tests are passing. - Review the documentation to make sure it looks good. - Follow the pull request template when opening a pull request. - For pull requests that change the API or implementation, discuss with maintainers first by opening an issue. ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2020 Mo Gorhom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # React Native Bottom Sheet [![Reanimated v3 version](https://img.shields.io/github/package-json/v/gorhom/react-native-bottom-sheet/master?label=Reanimated%20v3&style=flat-square)](https://www.npmjs.com/package/@gorhom/bottom-sheet) [![Reanimated v2 version](https://img.shields.io/github/package-json/v/gorhom/react-native-bottom-sheet/v4?label=Reanimated%20v2&style=flat-square)](https://www.npmjs.com/package/@gorhom/bottom-sheet) [![Reanimated v1 version](https://img.shields.io/github/package-json/v/gorhom/react-native-bottom-sheet/v2?label=Reanimated%20v1&style=flat-square)](https://www.npmjs.com/package/@gorhom/bottom-sheet)
[![license](https://img.shields.io/npm/l/@gorhom/bottom-sheet?style=flat-square)](https://www.npmjs.com/package/@gorhom/bottom-sheet) [![npm](https://img.shields.io/badge/types-included-blue?style=flat-square)](https://www.npmjs.com/package/@gorhom/bottom-sheet) [![runs with expo](https://img.shields.io/badge/Runs%20with%20Expo-4630EB.svg?style=flat-square&logo=EXPO&labelColor=f3f3f3&logoColor=000)](https://expo.io/)
![NPM Downloads](https://img.shields.io/npm/dw/%40gorhom%2Fbottom-sheet?style=flat-square) A performant interactive bottom sheet with fully configurable options 🚀 ![React Native Bottom Sheet](./preview.gif) --- ## Features - ⭐️ Support React Native Web, [read more](https://gorhom.dev/react-native-bottom-sheet/web-support). - ⭐️ Dynamic Sizing, [read more](https://gorhom.dev/react-native-bottom-sheet/dynamic-sizing). - ⭐️ Support FlashList, [read more](https://gorhom.dev/react-native-bottom-sheet/components/bottomsheetflashlist). - Modal presentation view, [Bottom Sheet Modal](https://gorhom.dev/react-native-bottom-sheet/modal). - Smooth gesture interactions & snapping animations. - Seamless [keyboard handling](https://gorhom.dev/react-native-bottom-sheet/keyboard-handling) for iOS & Android. - Support [pull to refresh](https://gorhom.dev/react-native-bottom-sheet/pull-to-refresh) for scrollables. - Support `FlatList`, `SectionList`, `ScrollView` & `View` scrolling interactions, [read more](https://gorhom.dev/react-native-bottom-sheet/scrollables). - Support `React Navigation` Integration, [read more](https://gorhom.dev/react-native-bottom-sheet/react-navigation-integration). - Compatible with `Reanimated` v1-3. - Compatible with `Expo`. - Accessibility support. - Written in `TypeScript`. - [Read more](https://gorhom.dev/react-native-bottom-sheet). ## Getting Started Check out [the documentation website](https://gorhom.dev/react-native-bottom-sheet). ## Versioning This library been written in 3 versions of `Reanimated`, and kept all implementation in separate branches: - **`v5`** | [branch](https://github.com/gorhom/react-native-bottom-sheet/tree/master) | [changelog](https://github.com/gorhom/react-native-bottom-sheet/blob/master/CHANGELOG.md) : written with `Reanimated v3` & `Gesture Handler v2`. - `v4` (not maintained) | [branch](https://github.com/gorhom/react-native-bottom-sheet/tree/v4) | [changelog](https://github.com/gorhom/react-native-bottom-sheet/blob/v4/CHANGELOG.md) : written with `Reanimated v2`. - `v2` (not maintained) | [branch](https://github.com/gorhom/react-native-bottom-sheet/tree/v2) | [changelog](https://github.com/gorhom/react-native-bottom-sheet/blob/v2/CHANGELOG.md) : written with `Reanimated v1` & compatible with `Reanimated v2`. > I highly recommend to use `v5` which provides more stability with all latest features. ## Author - [Mo Gorhom](https://gorhom.dev/) ## Sponsor & Support To keep this library maintained and up-to-date please consider [sponsoring it on GitHub](https://github.com/sponsors/gorhom). Or if you are looking for a private support or help in customizing the experience, then reach out to me on Twitter [@gorhom](https://twitter.com/gorhom). ## License [MIT](./LICENSE) ---

Mo Gorhom Mo Gorhom

================================================ FILE: babel.config.js ================================================ module.exports = { presets: ['module:metro-react-native-babel-preset'], plugins: ['react-native-reanimated/plugin'], }; ================================================ FILE: biome.json ================================================ { "$schema": "https://biomejs.dev/schemas/2.2.2/schema.json", "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": false }, "formatter": { "enabled": true, "useEditorconfig": true, "formatWithErrors": false, "indentStyle": "space", "lineEnding": "lf", "lineWidth": 80, "includes": ["**", "!**/.github", "!**/lib", "!**/.expo", "!**/website"] }, "assist": { "actions": { "source": { "organizeImports": "on" } } }, "linter": { "enabled": true, "rules": { "recommended": true, "complexity": { "noUselessLoneBlockStatements": "warn", "noUselessUndefinedInitialization": "warn", "noVoid": "warn", "useLiteralKeys": "warn", "noAdjacentSpacesInRegex": "warn", "noCommaOperator": "warn" }, "correctness": { "noConstAssign": "error", "noConstantCondition": "off", "noEmptyCharacterClassInRegex": "warn", "noGlobalObjectCalls": "warn", "noInnerDeclarations": "off", "noInvalidUseBeforeDeclaration": "off", "noUndeclaredVariables": "error", "noUnreachable": "error", "noUnusedVariables": "warn", "useExhaustiveDependencies": "error", "useHookAtTopLevel": "error", "useIsNan": "warn", "useValidTypeof": "warn" }, "security": { "noGlobalEval": "error" }, "style": { "noYodaExpression": "warn", "useBlockStatements": "warn", "useCollapsedElseIf": "off", "useConsistentBuiltinInstantiation": "warn", "useDefaultSwitchClause": "off", "useSingleVarDeclarator": "off", "useExponentiationOperator": "off", "useArrayLiterals": "warn" }, "suspicious": { "noCatchAssign": "warn", "noCommentText": "error", "noConsole": { "level": "error", "options": { "allow": ["warn", "error"] } }, "noControlCharactersInRegex": "warn", "noDebugger": "warn", "noDoubleEquals": "warn", "noDuplicateClassMembers": "error", "noDuplicateJsxProps": "error", "noDuplicateObjectKeys": "error", "noEmptyBlockStatements": "off", "noFallthroughSwitchClause": "warn", "noFunctionAssign": "warn", "noLabelVar": "warn", "noRedeclare": "off", "noSelfCompare": "warn", "noShadowRestrictedNames": "warn", "noSparseArray": "warn", "noWith": "warn" } }, "includes": [ "**", "!**/node_modules/", "!**/lib", "!**/.expo", "!**/website" ] }, "javascript": { "jsxRuntime": "reactClassic", "formatter": { "trailingCommas": "es5", "semicolons": "always", "arrowParentheses": "asNeeded", "quoteStyle": "single", "bracketSpacing": true }, "globals": [ "clearImmediate", "queueMicrotask", "Blob", "Set", "Promise", "requestIdleCallback", "setImmediate", "requestAnimationFrame", "File", "Map", "__DEV__", "WebSocket" ] }, "files": { "includes": [ "**", "!**/node_modules/", "!**/lib", "!**/.expo", "!**/example", "!**/website" ] } } ================================================ FILE: commitlint.config.js ================================================ module.exports = { extends: ['@commitlint/config-conventional'], }; ================================================ FILE: example/.gitignore ================================================ # Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files # dependencies node_modules/ # Expo .expo/ dist/ web-build/ # Native *.orig.* *.jks *.p8 *.p12 *.key *.mobileprovision # Metro .metro-health-check* # debug npm-debug.* yarn-debug.* yarn-error.* # macOS .DS_Store *.pem # local env files .env*.local # typescript *.tsbuildinfo ================================================ FILE: example/App.tsx ================================================ import React from 'react'; import { StyleSheet } from 'react-native'; import { GestureHandlerRootView } from 'react-native-gesture-handler'; import Main from './src/Main'; import { enableScreens } from 'react-native-screens'; enableScreens(true); // @ts-ignore import { enableLogging } from '@gorhom/bottom-sheet'; enableLogging(); export default function App() { return (
); } const styles = StyleSheet.create({ container: { flex: 1, }, }); ================================================ FILE: example/app.json ================================================ { "expo": { "name": "BottomSheet", "slug": "BottomSheet", "githubUrl": "https://github.com/gorhom/react-native-bottom-sheet", "version": "5.0.0", "orientation": "portrait", "icon": "./assets/icon.png", "userInterfaceStyle": "automatic", "backgroundColor": "#000000", "newArchEnabled": true, "splash": { "image": "./assets/splash.png", "resizeMode": "contain", "backgroundColor": "#000000" }, "assetBundlePatterns": ["**/*"], "ios": { "supportsTablet": true, "bundleIdentifier": "dev.gorhom.bottomsheet" }, "android": { "adaptiveIcon": { "foregroundImage": "./assets/adaptive-icon.png", "backgroundColor": "#000000" }, "package": "dev.gorhom.bottomsheet", "softwareKeyboardLayoutMode": "pan" }, "web": { "favicon": "./assets/favicon.png" }, "plugins": [ [ "expo-asset", { "assets": ["./assets"] } ] ] } } ================================================ FILE: example/babel.config.js ================================================ const path = require('node:path'); const pak = require('../package.json'); module.exports = api => { api.cache(true); return { presets: ['babel-preset-expo'], plugins: [ [ 'module-resolver', { extensions: ['.tsx', '.ts', '.js', '.json'], alias: { [pak.name]: path.join(__dirname, '..', pak.source), }, }, ], '@babel/plugin-proposal-export-namespace-from', 'react-native-worklets/plugin', ], }; }; ================================================ FILE: example/metro.config.js ================================================ // Learn more https://docs.expo.io/guides/customizing-metro const { getDefaultConfig } = require('expo/metro-config'); const path = require('node:path'); const { wrapWithReanimatedMetroConfig, } = require('react-native-reanimated/metro-config'); // Find the project and workspace directories const projectRoot = __dirname; // This can be replaced with `find-yarn-workspace-root` const workspaceRoot = path.resolve(projectRoot, '..'); /** @type {import('expo/metro-config').MetroConfig} */ const config = getDefaultConfig(__dirname); config.watchFolders = [workspaceRoot]; config.resolver.nodeModulesPaths = [path.resolve(projectRoot, 'node_modules')]; config.resolver.disableHierarchicalLookup = true; module.exports = wrapWithReanimatedMetroConfig(config); ================================================ FILE: example/package.json ================================================ { "name": "@gorhom/bottomsheet-example", "version": "5.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web" }, "dependencies": { "@expo/webpack-config": "~19.0.1", "@gorhom/portal": "^1.0.14", "@gorhom/showcase-template": "^4.0.1", "@legendapp/list": "^2.0.0", "@react-navigation/material-top-tabs": "^7.2.13", "@react-navigation/native": "^7.1.9", "@react-navigation/native-stack": "^7.3.13", "@react-navigation/stack": "^7.3.2", "@shopify/flash-list": "2.0.2", "expo": "~54.0.26", "expo-asset": "~12.0.7", "expo-blur": "~15.0.6", "expo-image": "~3.0.7", "expo-status-bar": "~3.0.7", "react": "19.1.0", "react-dom": "19.1.0", "react-native": "0.81.5", "react-native-gesture-handler": "~2.28.0", "react-native-maps": "1.20.1", "react-native-pager-view": "6.9.1", "react-native-reanimated": "~4.1.0", "react-native-redash": "^18.1.0", "react-native-safe-area-context": "~5.6.0", "react-native-screens": "~4.16.0", "react-native-tab-view": "^3.5.2", "react-native-web": "^0.21.0", "react-native-webview": "13.15.0", "react-native-worklets": "0.5.1" }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/plugin-proposal-export-namespace-from": "^7.18.9", "@types/faker": "^4.1.12", "@types/react": "~19.1.10", "@types/react-native": "^0.73.0", "babel-loader": "^10.0.0", "babel-plugin-module-resolver": "^5.0.0", "faker": "^4.1.0", "typescript": "~5.9.2" }, "overrides": { "use-latest-callback": "^0.2.3" }, "resolutions": { "use-latest-callback": "^0.2.3" }, "private": true } ================================================ FILE: example/src/Dev.tsx ================================================ import BottomSheet, { BottomSheetFlatList, BottomSheetView, } from '@gorhom/bottom-sheet'; import React, { useCallback, useMemo, useRef } from 'react'; import { Button, type FlatList, type LayoutChangeEvent, StyleSheet, Text, View, } from 'react-native'; import { SafeAreaProvider, useSafeAreaFrame, useSafeAreaInsets, } from 'react-native-safe-area-context'; const DATA = new Array(50).fill(0).map((_, index) => ({ id: `item-${index}`, })); const SNAP_POINTS = [300, 600]; const renderItem = ({ item }) => ( {item.id} ); const App = () => { //#region ref const bottomSheetRef = useRef(null); const [mount, setMount] = React.useState(false); //#endregion //#region hooks const { bottom: bottomSafeArea, top: topSafeArea } = useSafeAreaInsets(); const { height } = useSafeAreaFrame(); //#endregion //#region callbacks const handleOnLayout = useCallback( ({ nativeEvent: layout }: LayoutChangeEvent) => { // eslint-disable-next-line no-console console.log('BottomSheetFlatList::handleOnLayout', layout); }, [] ); //#endregion //#region styles const contentContainerStyle = useMemo( () => ({ paddingBottom: bottomSafeArea, }), [bottomSafeArea] ); //#endregion // renders const ref = useRef(null); // ref.current?.getNativeScrollRef() return (