You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My suggestion would be to use flex-direction: column-inverted | row-inverted instead.
It wouldn't be as close to React Native as transform: scaleY(-1); but produce a better outcome for many/most? use cases.
It would also probably fix other strange behaviors reported in #1254 and #1579
An other option would be to document this issue and propose a solution in the documentation.
The problem
<FlatList inverted={true}/>
makes use of CSStransform: scaleY(-1);
which produce unexpected and inconsistent scrolling behavior.This specific issue has been reported to the Chromium team which marked it as WontFix https://bugs.chromium.org/p/chromium/issues/detail?id=1139881 and to https://webcompat.com/issues/60703
My suggestion would be to use
flex-direction: column-inverted | row-inverted
instead.It wouldn't be as close to React Native as
transform: scaleY(-1);
but produce a better outcome for many/most? use cases.It would also probably fix other strange behaviors reported in #1254 and #1579
An other option would be to document this issue and propose a solution in the documentation.
Regardless happy to send a PR.
How to reproduce
https://jsfiddle.net/6ebn7g3y/1/
https://bugs.chromium.org/p/chromium/issues/attachmentText?aid=472596
Expected behavior
Respects user preference on all platform.
Workaround:
Environment (include versions). Did this work in previous versions?
Related: #1254 and #1579
The text was updated successfully, but these errors were encountered: