Check out example codes for "responsive images css". It will help you in understanding the concepts better.

Code Example 1

.responsive {
  max-width: 100%;
  height: auto;
}

Code Example 2

.responsive-img {
  max-width:100%;
  display:block;
  height:auto;
}

Learn ReactJs, React Native from akashmittal.com