Check out example codes for "css resize image to fit div no stretching". It will help you in understanding the concepts better.

Code Example 1

.div {
  background-image: url(../images/your-image.png);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

Learn ReactJs, React Native from akashmittal.com