callstack / callstack/react-native-pager-view

onPageSelected called automatically when navigate to other screen and detachInactiveScreens is false

Aperta
#488 6 commenti 8 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
3.4k
Fork
476
Merge medio
10g 21h
PR unite (30g)
2

Descrizione

## Environment

`"react": "17.0.2",`
`"react-native": "0.66.2"`
`"react-native-pager-view": "^6.0.0-rc.0"`
`"@react-navigation/native": "^6.0.6"`

## Description

disable the `detachInactiveScreens` and navigate to other screen and after came back the page is set to zero onPageSelected event is called every time when I navigate to other screen. Event is working fine when `detachInactiveScreens` is true.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.