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

Code Example 1

.img {
  object-fit: contain;
}

Code Example 2

.img {
	object-fit: cover;         
  	object-position: 100% 0;  //move image position in x direction. 
  	object-position: 0 100%; //move image position in y direction.
}

Code Example 3

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

  width: 300px;
  height: 337px;
}

Learn ReactJs, React Native from akashmittal.com