Check out example codes for "size carousel bootstrap 4". It will help you in understanding the concepts better.

Code Example 1

.carousel .item {
  height: 300px;
}

.item img {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 300px;
}

Learn ReactJs, React Native from akashmittal.com