Dynamic items display per screen Native

0
Hello everyone,im building a native mobile app for mobile and tablets but i have an issue with displaying my buttons for pages navigation on the phone i have the sizes going by 2 buttons in a row witch is showing perfect but i move to the tablet the 2 buttons show up huge for the screen is there a way to make the display dynamicly show 2 buttons a row on the phone and 3 or more on the tablet depending on the screen size?
asked
1 answers
1

Hi Mohamed,

Set the parent container to Render Children and Wrap Children as Yes, then use responsive units (vw/vh) for the card or button styles.


Using vw/vh allows the layout to adapt automatically based on the screen width, so the number of items per row changes naturally between phones and tablets.


Kindly mark this as the accepted answer if it helps.

answered