callstack / callstack/react-native-pager-view
How to use Pager View combined with a Drawer?
- Vorherrschende Sprache
- TypeScript
- Sterne
- 3.4k
- Forks
- 476
- Ø Merge
- 10 T. 21 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
I have a Drawer navigation setup with React Navigation (swipe edge width is set to the full width of the screen). In one of the routes I use Pager View. Let’s say I have 2 pages in the Pager View. Here is what I want to happen:
If I’m at the first page and I’m doing a swipe right gesture (to open the drawer), I want the drawer to open. If I’m doing a swipe left on the first page it should take me to the second page (like it normally does).
If I’m on the second page, swipe right should take me to the first page like usual but without opening the drawer.
I looked around but couldn’t find a way to get this done. Can you help? I’m not sure if this is the right place to ask this but there it goes.
Beitragsleitfaden
Rechercherichtung
Es werden keine Dateien, Tests oder Einstiegspunkte genannt. Beginne damit, die Interaktion mit React Navigation Drawer und Pager View anhand des beschriebenen Wischverhaltens für zwei Seiten zu reproduzieren; abgeschlossen wäre dies, wenn die Gestepriorität zwischen dem Öffnen des Drawers und dem Wechseln der Seiten ermittelt und dokumentiert oder implementiert wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- react-native, typescript
- Bereich
- mobile
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100