callstack / callstack/react-native-pager-view
When switching tab pages, onPageSelected always executes once and the passed e.nativeEvent-position is 0
オープン
- 主要言語
- TypeScript
- スター
- 3.4k
- フォーク
- 476
- 平均マージ
- 10日 21時間
- マージ済み PR(30日)
- 2
説明
` 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

If it always remains 0 after switching
コントリビューションガイド
調査の方向性
まず、onPageSelected を使用してタブページを切り替える PagerView のサンプル使用方法を再現し、その後、報告された e.nativeEvent.position の値を確認します。コールバックが常に 0 を受け取るのではなく選択されたページの位置を受け取り、タブの状態を保持できれば、問題は解決です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react-native, typescript
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100