FlatList inverted prop ordering of elements causes copy/paste issues
オープン
まだ誰も着手していません。
Component: FlatList
Needs: Triage :mag:
Never gets stale
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.3k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 4
説明
Description
When the inverted prop is applied to FlatList the elements remain in the order given and are reversed via styling rather than by reversing the order in which they are rendered. This makes it so that, for example, if react-native-web is used, when the list elements are copied, they end up pasting in reverse order.
React Native version:
0.63.3
Steps To Reproduce
- Create a list using
FlatList - Apply the
invertedprop - Note the order of some list items and copy them
- Paste them and note that the order is backwards from what was displayed
Expected Results
I would expect that when pasted the list would retain the order that is shown on the screen.
Snack, code example, screenshot, or link to a repository:
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
FlatList の inverted prop の動作から始め、リンクされた CodeSandbox を使って問題を再現します。react-native-web のケースも含め、表示順序とコピーして貼り付けたときの順序を比較します。inverted なリストをコピーしたときに、表示されているアイテムの順序が維持されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react-native
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100