Check out example codes for "hwo to use flexbox to make a nav bar". It will help you in understanding the concepts better.

Code Example 1

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

Learn ReactJs, React Native from akashmittal.com