-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy and Pasting text comes out backwards when using FlatList inverted #1807
Comments
VirtualizedList / FlatList comes directly from React Native, so you should raise this issue in that repo. But I don't know that there is any practical alternative to the existing approach to inversion, where the HTML order is preserved. There are also some flexbox issues in React Native that might be involved - facebook/react-native#23632 (comment) |
If anyone is able to fix this, we're willing to compensate. Issue posted Expensify/App#1341 |
We're still looking for help to "Fix Inverted prop on the FlatList component with a RN Patch". The current link is Expensify/App#3381 job amount is $8000. Any help/tips are greatly appreciated. |
The problem
When using the
inverted
prop withFlatList
text is pasted in backwards order. For example if the list (after inversion) is:Copy and pasting it will result in:
How to reproduce
Simplified test case: https://codesandbox.io/s/cold-wave-grzpj?file=/src/App.js
Steps to reproduce:
FlatList
inverted
propExpected behavior
I would expect that when pasted the list would retain the order that is shown on the screen.
Environment (include versions). Did this work in previous versions?
Additional context
The problem seems to have to do with the fact that when the
inverted
prop is applied, the html elements are still in the original order and the inversion is done via cssflex-direction: column-reversed
.The text was updated successfully, but these errors were encountered: