Check out example codes for "style image so it crops". It will help you in understanding the concepts better.

Code Example 1

.alligator-turtle {
  object-fit: cover;
  object-position: 100% 0;

  width: 300px;
  height: 337px;
}

Learn ReactJs, React Native from akashmittal.com