Check out example codes for "align div to right side of parent". It will help you in understanding the concepts better.

Code Example 1

/* align the div to right side */
margin-left:auto;
margin-right:0;

Learn ReactJs, React Native from akashmittal.com