Skip to content

Setting scrollable forces auto-detent to 1 #553

Description

@vilindberg

Before submitting a new issue

  • I tested using the latest version of the library.
  • I tested using a supported version of React Native.
  • I checked for existing issues that might answer my question.

Bug Summary

When setting scrollable on a sheet detents includes 'auto', the 'auto'-detent is always set to 1 even though the sheet content is just x pixels high.

iOS is affected. Not sure about Android yet.

Affected Platforms

  • iOS
  • Android
  • Web
  • Other

Library Version

3.9.4

Environment Info

System:                                                                                                                              OS: macOS 26.2
  CPU: (11) arm64 Apple M3 Pro                                                                                                       Memory: 964.80 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.21.1                                                                                                                   path: /Users/viktor/.nvm/versions/node/v22.21.1/bin/node
  Yarn:
    version: 4.11.0
    path: /Users/viktor/.nvm/versions/node/v22.21.1/bin/yarn
  npm:
    version: 10.9.4
    path: /Users/viktor/.nvm/versions/node/v22.21.1/bin/npm
  Watchman:
    version: 2025.03.10.00
    path: /opt/homebrew/bin/watchman
Managers:                                                                                                                            CocoaPods:
    version: 1.16.2                                                                                                                    path: /opt/homebrew/bin/pod
SDKs:                                                                                                                                iOS SDK:
    Platforms:                                                                                                                           - DriverKit 25.2
      - iOS 26.2                                                                                                                         - macOS 26.2
      - tvOS 26.2                                                                                                                        - visionOS 26.2
      - watchOS 26.2                                                                                                                 Android SDK: Not Found
IDEs:                                                                                                                                Android Studio: 2025.3 AI-253.29346.138.2531.14876573
  Xcode:                                                                                                                               version: 26.2/17C52
    path: /usr/bin/xcodebuild                                                                                                      Languages:
  Java:                                                                                                                                version: 17.0.13
    path: /usr/bin/javac                                                                                                             Ruby:
    version: 3.3.6                                                                                                                     path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:                                                                                                                         "@react-native-community/cli":
    installed: 20.1.1                                                                                                                  wanted: ^20.1.1
  react:                                                                                                                               installed: 19.1.0
    wanted: 19.1.0                                                                                                                   react-native:
    installed: 0.81.5                                                                                                                  wanted: 0.81.5
  react-native-macos: Not Found
npmGlobalPackages:                                                                                                                   "*react-native*": Not Found
Android:                                                                                                                             hermesEnabled: true
  newArchEnabled: true
iOS:                                                                                                                                 hermesEnabled: true
  newArchEnabled: true

Steps to Reproduce

  1. Open a sheet with detent 'auto' and scrollable set

Repro

https://github.com/vilindberg/react-native-true-sheet-scrollable-auto-height

Additional Context

Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-02-20.at.17.08.11.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrepro providedGood! Repro is provided

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions