Skip to content
Discussion options

You must be logged in to vote

Hi @lovegaoshi, just to add a concrete example to @m-bert's answer, since the v3 docs don't spell out this exact migration.

withRef (and ref-based simultaneousHandlers) belongs to the legacy API, so it can't be mixed with hook-based gestures, as you were told. In v3 you don't pass a ref anymore: you pass the gesture object returned by the hook. Reading the 3.3.0 sources, the relation props are simultaneousWith, requireToFail and block (ExternalRelations), and they are accepted both by the gesture hooks and by the RNGH wrapped components (ScrollView, FlatList, ...).

For "native scroll + pull-up gesture at the bottom" that gives something like:

import { GestureDetector, ScrollView, usePanGe…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@m-bert
Comment options

@lovegaoshi
Comment options

@m-bert
Comment options

Comment options

You must be logged in to vote
2 replies
@lovegaoshi
Comment options

@m-bert
Comment options

Answer selected by lovegaoshi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants