[Feature Request] Overdrag support

Open
#53 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
react-native
Domain
mobile

Research direction

Start by reproducing the drag gesture described in the issue: drag the sheet past its maximum position, then reverse direction without releasing. Trace the bottom-sheet gesture entry point and identify the existing behavior that disregards the overdrag; done means the sheet responds naturally when the gesture reverses.

Written by the indexing model from the issue text.

Description

enhancement

Currently if you drag the sheet to the top beyond the max intent the gesture gets disregarded completely. Not only does it look a little unnatural and rigid, but my main peeve is that when you initially start dragging it to the top, dragging it to the button with the same motion also doesn't trigger any movement of the sheet.
Hope it's a not a shortcoming of native implementation.

Dominant language
Kotlin
Stars
536
Forks
24
Avg merge
12h 10m
Merged PRs (30d)
22

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from software-mansion/react-native-bottom-sheet

All issues in software-mansion/react-native-bottom-sheet

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.