Check out example codes for "background with image and gradient". It will help you in understanding the concepts better.

Code Example 1

body {
  background: #eb01a5;
  background-image: url("IMAGE_URL"); /* fallback */
  background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531); /* W3C */
}

Learn ReactJs, React Native from akashmittal.com