Mastering NativeScript Layouts - Brad Martin
Why Stack Overflow recommends it
Stack Overflow users link it when answering NativeScript questions about layout choice, nested layouts and UI performance.
Recommended by 3 people across 3 different months, 2018 to 2019.
What it is
A conference talk by Brad Martin on NativeScript's core layout containers, showing how to recreate popular mobile app screens such as Facebook and Twitter with performant layouts. It covers tips and tricks for choosing the right layout and keeping view hierarchies flat.
What people said
Recommends Manoj · 2018-12 · Stack Overflow · on “Nativescript performance with custom components”
The first suggestion is not about number of elements but how the layout and measurement system works. We have different layouts for a reason, StackLayout is one designated for stacking items. There is a nice video presentation [this video] done by Brad Martin, that might help you understand.
Recommends Daniel Battaglia · 2019-03 · Stack Overflow · on “How do the NativeScript Flavor's Performance Compare? (Angular, Vue, Core)”
@tiago absolutely, the layout choices we make have a huge impact. Have you seen this talk by Brad Martin? [this video] ... Very insightful.
Recommends Nero · 2019-08 · Stack Overflow · on “Is many layouts on one page bad in nativescript? And if so why?”
You are right, compounding with a lot of layouts can be a problem and generates a performance penalty. Always try to flattened your layouts, keep it simple. A good start point is to consider a GridLayout to do the job, but Nativescript has 7 layouts at your disposal, so we always have cards to choose the best for that page/screen. See this talk [this video] about layouts by Brad Martin, will clarify some aspects that you ask.