Ambiguity on why the index property in ViewToken is marked optional
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 38/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react-native
調査の方向性
React Native ドキュメントの ViewToken ページから始め、オプションの index プロパティの説明を確認します。VirtualizedList、FlatList、SectionList で onViewableItemsChanged コールバックによって ViewToken がどのように使用されるかを調べ、その後、null の index が許可される状況を確認します。その状況を説明するようにプロパティの説明を更新し、レンダリングされたドキュメントを確認します。
索引モデルが issue の本文から書いたものです。
説明
Description
On the ViewToken page in the docs it shows that the index property is optional. This is not explained in any further detail by the docs.
What is the problem?
It is unclear to me in what situation this property would be null. This object is used as a parameter for the onViewableItemsChanged callback in VirtualizedList so it is in turn also used in both FlatList and SectionList. This makes me think there wouldn't be a situation where index would be null.
How can we address it?
Update the description of the index property on ViewToken to clarify in what situation it could be null.
If anyone knows a resource like an issue in the react-native repo or a from post that discusses this or can explain it to me I can also make a PR to clarify the description on the property.
Why is it important?
It is currently ambiguous why the index property on ViewToken is marked as optional.
Who needs this?
Anyone using the onViewableItemsChanged prop and relies on the indexes of the callback.
- 主要言語
- MDX
- スター
- 2.2k
- フォーク
- 6.3k
- 平均マージ
- 11時間 37分
- マージ済み PR(30日)
- 19
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
react/react-native-website のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
react/react-native-website#5217 ·
-
Integration with Existing Apps: Podfile example does not use `use_react_native!`, is incomplete オープン👋 Good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
react/react-native-website#2958 · コメント 2 件 ·
-
:ghost: Missing Docs 👋 Good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
react/react-native-website#889 · コメント 5 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
react/react-native-website#5216 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
react/react-native-website#5154 · コメント 6 件 ·
react/react-native-website の issue をすべて見る
似ている issue
-
Crush オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
catppuccin/catppuccin#3125 ·
-
Link Checker Report オープンautomated issue report
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
VoltAgent/awesome-design-md#469 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
KhronosGroup/glTF#2648 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
sccn/sccn.github.io#108 ·