Check out example codes for "How to resize an background image to fit in the browser window?". It will help you in understanding the concepts better.

Code Example 1

html { 
  background: url(images/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;  
}

Learn ReactJs, React Native from akashmittal.com