Update ListView page
ikoevska opened this issue · 2 comments
ListView now requires the height property to work (at least on iOS). We need to update the docs page for that.
This is only the case when used in a StackLayout and this has been true for vanilla nativescript as well. What I personally suggest most of the time is to use a GridLayout which has far less issues than a StackLayout (and it is more performant).
Throughout the docs we reference StackLayout quite often and the reason is that it's the easiest layout to understand, but not the best one... This is a double edge sword, because on one hand I'd like to keep the docs easy to understand, but on the other hand I want to suggest things that I'd actually use in production.
Anyways, for this case we can mention in a note, that when used in a StackLayout a height should be applied.
@rigor789 I know you do not want to make the documentation seem more complex, but for me personally I feel that you providing what I would call "NativeScript best practices" within the docs would be helpful.
This would be great for new users reading through especially since they may think that the StackLayout is the best since it used so often throughout. I know it could seem like you are adding a bias to it, but I see no harm in finding out your recommendations on when and where to use different UI components and more.