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

Code Example 1

Align images with the helper float classes or text alignment classes.
block-level images can be centered using the .mx-auto margin utility class.

<img src="..." class="rounded float-left" alt="...">
<img src="..." class="rounded float-right" alt="...">
<img src="..." class="rounded mx-auto d-block" alt="...">

Code Example 2

<img src="..." class="img-fluid" alt="Responsive image">

Code Example 3

/* used mx-auto d-block */

<img class="mx-auto d-block" src="" alt=""/>

Learn ReactJs, React Native from