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)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay