callstack / callstack/react-native-pager-view
Expecting View State but received class androidx.recyclerview.widget.RecyclerView$SavedState instead
- 主要言語
- TypeScript
- スター
- 3.4k
- フォーク
- 476
- 平均マージ
- 10日 21時間
- マージ済み PR(30日)
- 2
説明
## Environment

## Description
I think the app is crashing on start but its not easily replicable.
I believe the problem is happening because ViewPager inflate views and assign dynamically-generated ids to them. (ref: https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-collection-release/viewpager2/src/main/java/androidx/viewpager2/widget/ViewPager2.java?source=post_page---------------------------#146)
Is there anything we can do to mitigate this crash?
コントリビューションガイド
調査の方向性
Issue のクラッシュタイトル、スクリーンショット、リンクされている AndroidX ViewPager2 のリファレンスから始め、動的に生成される ViewPager2 の ID が RecyclerView の状態復元とどのように相互作用するかを調査します。起動時に断続的に発生するクラッシュを確認し、再現可能な軽減策を特定します。問題が解決したときの再現手順と期待される動作を文書化します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, react-native
- 領域
- mobile-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100