Check out example codes for "how to scale a bg image acc to size of div". It will help you in understanding the concepts better.

Code Example 1

/* One way */
background-size: cover;

/* Other option */
background-size: contain;

Learn ReactJs, React Native from akashmittal.com