It seems that the problem is with the tabNavigator. First tab (and it's children) has height property set accordingly to % value. So inside creationComplet event function I wrote something like this:
tabNavigator.selectedIndex = 1;
So in the end I get the second tab's height property accordingly to % value instead of default value. Just as I wanted
But still I have a question: Is there a way to get the % height without such an awkward 'detour' code as I wrote above?
1 person found this helpful
By default, TabNavigator does not create the children on non-visible tabs
until needed. You can change creationPolicy so it does, but that will hurt
Yes, but I already got creationPolicy set to 'all' and still 'height' property of the second tab is set to default on creationComplete event.
Looks like ViewStacks don't layout children until selected so your
workaround is probably correct. If we layed out all children it would hurt
performance even more.