software-mansion / software-mansion/react-native-gesture-handler

It's unclear how to compose enhanced ScrollView from RNGH and Reanimated

Open
#2,624 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Missing repro Platform: Android
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

  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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.