Check out example codes for "aligning image to middle in html". It will help you in understanding the concepts better.

Code Example 1

<style>
.aligncenter {
    text-align: center;
}
</style>

Learn ReactJs, React Native from akashmittal.com