Check out example codes for "how to make text center above image html". It will help you in understanding the concepts better.

Code Example 1

#container {
  text-align: center;
}

.text {
  display: inline-block;
  margin: 0 20px 0 20px;
}

.img {
  margin: 0 20px 0 20px;
  width: 50px;
  height: 50px;
}

Learn ReactJs, React Native from akashmittal.com