Check out example codes for "css flex divide evenly". It will help you in understanding the concepts better.

Code Example 1

flex: 1 1 0px

Learn ReactJs, React Native from akashmittal.com