Check out example codes for "button accessible name html". It will help you in understanding the concepts better.

Code Example 1

<button class="btn" aria-label="Right Align">
      <span class="material-icons" aria-hidden="true">format_align_right</span>
    </button>

Learn ReactJs, React Native from akashmittal.com