React-window: [Feature Request] Reverse direction support

Created on 21 May 2019  路  7Comments  路  Source: bvaughn/react-window

Is there any plans to implement something like reverse direction support? I'm currently implementing a chat application and it would be very handy

There seems to be some work done here https://github.com/corupta/react-window/tree/npm

馃挰 question

Most helpful comment

@GonzaloRizzo what did you end up moving forward with for your chat application? I'm looking for ideas as I go about implementing chat-like functionality that requires reverse virtualized-list functionality.

All 7 comments

No current plans, no

@bvaughn Would you be open to a PR that adds reverse direction support, possibly behind a reversed={true || false} prop?

@joshfarrant Feel free to create a PR. I'll be happy to review it, but I won't make any promises about it landing.

I would say that I think layout="vertical-reverse" (or something similar) would maybe make more sense. We already have direction and layout props. I don't want to be in a place where someone could set layout="horizontal" direction="rtl" reverse={true} because I don't even know what that would mean.

Thanks for the quick response. Agree that layout="vertical-reverse" makes more sense. I'll have a look into it and let you know if I make any progress.

@GonzaloRizzo what did you end up moving forward with for your chat application? I'm looking for ideas as I go about implementing chat-like functionality that requires reverse virtualized-list functionality.

Anyone working on this feature? is there any workaround for this?

I'd be interested if anyone has done this in a fork as well. There's react-window-reversed, but it appears to use css transforms which seems far less than ideal.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vinnymac picture vinnymac  路  3Comments

janhesters picture janhesters  路  3Comments

bitboxer picture bitboxer  路  3Comments

Kizmar picture Kizmar  路  3Comments

delateurj picture delateurj  路  3Comments