Hey everyone,
I'm trying to create a dynamic height container for posts in my app. The goal is for the container to automatically adjust based on the content inside it. Here’s what I need:
If a user writes only text, the container should adjust to fit just the text.
If a user adds an image, the container should expand accordingly.
The height should not be fixed but should resize dynamically.
What’s the best approach to make the container height fully dynamic based on its content? Would really appreciate any advice!
Thanks! 😊