Check out example codes for "html list items horizontally with flexbox". It will help you in understanding the concepts better.

Code Example 1

for example: 
<ul class="navbar-items">
	<li> <a href="#start">Start</a> </li>
    <li> <a href="#profile">Profile</a> </li>
    <li> <a href="#projects">Projects</a> </li>
    <li> <a href="#info">Info</a> </li>

ul.navbar-items /* Important part */
    display: flex;
    align-items: stretch; 
    justify-content: space-between;
    width: 100%; /* play with this number to get spacings correct */

ul.navbar-items li /* Extra part, to style each item */
    padding: 10px;

Learn ReactJs, React Native from