Check out example codes for "CSS make image fill whole background". 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;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

Learn ReactJs, React Native from akashmittal.com