I'm currently stuck on a problem that I don't know how to solve properly.
I want to create a feed for the start page of my app. The feed should be infinitely scrollable and as resource-efficient as possible. Of course, this can all be done with the FlatList Component, but I don't know how to display different types of components in the FlatList.
Here is a picture with an example of how I mean different types of components:
So the layout has to be very flexible and I don't know how to do that with a FlatList. I have already thought about conditional rendering, but again I am missing a way of making it work correctly.
Have any of you ever solved such a problem? I would be grateful for any suggestions!