software-mansion / software-mansion/react-native-gesture-handler
It's unclear how to compose enhanced ScrollView from RNGH and Reanimated
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.8k
- Forks
- 1.1k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 50
Description
Description
RNGH and Reanimated appear to be designed to be used together. However, both have each own ScrollView export that are incompatible. Concretely, I want the onScroll={{ onBeginDrag, onEndDrag }} handlers from Reanimated (which are better than RN built-ins because RN built-ins are buggy — sigh — and which can run in a worklet). But I also need the waitFor prop from RNGH.
Looking at the source, I might be able to do this via createNativeWrapper but the docs say I shouldn't use it.
Steps to reproduce
irrelevant
Snack or a link to a repository
irrelevant
Gesture Handler version
irrelevant
React Native version
irrelevant
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
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 reviewing the RNGH and Reanimated ScrollView exports and the linked createNativeWrapper documentation. Determine the supported way to combine Reanimated scroll handlers with RNGH's waitFor prop, then document the composition and verify the example works on Android.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- documentation, mobile
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100