DEV Community

wqhui
wqhui

Posted on

How to make a view expand downwards in an inverted FlatList?

I'm currently facing a challenge with implementing an expandable section in an inverted FlatList for a chat application. When expanding a card within the list, it pushes the content up instead of down. This issue is occurring due to the inverted nature of the FlatList. I've prepared a sample code to illustrate the problem (https://www.reddit.com/r/reactnative/comments/18ybkr3/how_to_make_a_view_expand_downwards_in_an/). Any advice or insights from those who have tackled similar issues would be greatly appreciated. Thanks!

I fork this for reddit, but I donโ€™t see a solution. https://www.reddit.com/r/reactnative/comments/18ybkr3/how_to_make_a_view_expand_downwards_in_an/

Top comments (0)