InterviewSolution
| 1. |
How does justifyContent flexBox property work? |
|
Answer» JustifyContent property aligns the FLEXIBLE container's items when the items do not use all available space on the main axis. By DEFAULT, the main axis is a vertical axis in case of React native. Which means justifyContent property aligns child elements of flex parent vertically in React native. We can use this property to LAYOUT elements in a flex container. JustifyContent supports the following values: flex-start|flex-end|centre|space-between|space-around|initial|inherit; It also apply some control over the alignment of items when they overflow the line. Let me explain JustifyContent’s values:
|
|