Check out example codes for "fill and no repeat background image css". It will help you in understanding the concepts better.

Code Example 1

/* with CSS 3 */
#yourdiv {  
    background: url('bgimage.jpg') no-repeat;
    background-size: 100%;
}

Learn ReactJs, React Native from akashmittal.com