InterviewSolution
Saved Bookmarks
| 1. |
How does alignItems flexBox property works? |
|
Answer» You can THINK of alignItems as justifyContent behaviour for cross axis. Cross-axis in case if React native is the horizontal axis. CSS alignItems property sets the alignSelf value on all direct CHILDREN as a group. In Flexbox, it controls the alignment of items on the cross axis. By default, the cross axis is a horizontal axis in case of React native. We can use this property to layout elements in the flex container. The alignItems property supports following VALUES: stretch|center|flex-start|flex-end|baseline|initial|inherit; Let me explain alignItems values:
|
|