callstack / callstack/react-native-pager-view

When switching tab pages, onPageSelected always executes once and the passed e.nativeEvent-position is 0

Open
#888 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.4k
Forks
476
Avg merge
10d 21h
Merged PRs (30d)
2

Description

` handlePageSelected(e)}`

HandlePageSelected is always executed every time the page is switched, and passing an index of 0 results in the inability to retain the state of an option selected by the tab user

![image](https://github.com/user-attachments/assets/c43600bf-ebbf-4e6f-99a0-7ae06c8bd1f4)
If it always remains 0 after switching

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.