react-native-true-sheet icon indicating copy to clipboard operation
react-native-true-sheet copied to clipboard

[ANDROID] Can't scroll up inside ScrollView with scrollTo on sheet open

Open skaionedev opened this issue 3 months ago • 2 comments

Before submitting a new issue

  • [x] I tested using the latest version of the library, as the bug might be already fixed.
  • [x] I tested using a supported version of react native.
  • [x] I checked for possible duplicate issues, with possible answers.

Bug summary

Can't scroll up inside ScrollView component after scrollTo triggered inside useEffect and content was scrolled down. TrueSheet closes itself. Only possible way to scroll up is after scrolling down immediately scrolling up

Library version

2.0.6

Environment info

System: OS: macOS 15.6.1 CPU: (12) arm64 Apple M4 Pro Memory: 174.64 MB / 24.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 20.11.1 path: ~/.nvm/versions/node/v20.11.1/bin/node Yarn: version: 1.22.22 path: ~/.nvm/versions/node/v20.11.1/bin/yarn npm: version: 10.2.4 path: ~/.nvm/versions/node/v20.11.1/bin/npm Watchman: version: 2025.02.17.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.16.2 path: /opt/homebrew/lib/ruby/gems/3.4.0/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 24.5 - iOS 18.5 - macOS 15.5 - tvOS 18.5 - visionOS 2.5 - watchOS 11.5 Android SDK: Not Found IDEs: Android Studio: 2024.2 AI-242.23726.103.2422.13016713 Xcode: version: 16.4/16F6 path: /usr/bin/xcodebuild Languages: Java: version: 17.0.14 path: /usr/bin/javac Ruby: version: 3.4.2 path: /opt/homebrew/opt/ruby/bin/ruby npmPackages: "@react-native-community/cli": installed: 17.0.0 wanted: ^17.0.0 react: installed: 19.0.0 wanted: 19.0.0 react-native: installed: 0.79.5 wanted: 0.79.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 TrueSheet
  2. trigger inside useEffect scrollRef.currect.scrollTo()
  3. try to scroll up - impossible (TrueSheet closes)
  4. scrollRef was provided to TrueSheet
  5. ScrollView has nestedScrollEnabled enabled

skaionedev avatar Sep 15 '25 13:09 skaionedev

Having the same issue, have you found a fix?

KristijanKocev avatar Oct 06 '25 18:10 KristijanKocev

Hey, can you provide example code. Thank you!

lodev09 avatar Nov 24 '25 10:11 lodev09