Check out example codes for "texto desplegable html". It will help you in understanding the concepts better.

Code Example 1

<details>
  <summary>Más información</summary>
  <h2>Nombre del sujeto</h2>
  <img src="foto.jpg" alt="Foto del sujeto" />
</details>

Learn ReactJs, React Native from akashmittal.com