lelandrichardson / lelandrichardson/react-native-pan-controller
Scrollable within PanController
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 180
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for making this little module!
I'm trying to implement some functionality but can't seem to get it to work correctly. What I essentially want is a scrollable pane which can be enlarged. When first opened, it would be 50% of the viewport height, but you can drag it upward and it will reach 100% of the viewport height. Once at 100% viewport height (ie. it is the entire viewport), you could scroll the contents. You could downsize it back to being 50% of the viewport by scrolling back to the top and dragging down.
Does that make sense? Is it possible to do this using PanController?
My trouble comes with the interaction between the ScrollView and the PanController—the ScrollView never takes over, so you can't scroll its contents.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining how PanController and ScrollView share gesture ownership. Define the behavior at 50% and 100% viewport height, including dragging back down after the content returns to its top; done means the pane expands, its contents scroll at full height, and it can be downsized again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100