React-native accessible TextInput font-size

Hi,

I have an issue with making the place holder of an inputfield ( TextField, component ) accessible in size. I am checking whether it’s accessible with the x-code tool “accessibility inspectior” and as now the placeholder cannot be scaled.

Anyone who have an idea how I could make the placeholder text scalable?

To make the placeholder text of an input field accessible and scalable, you can set the font-size property in CSS for the ::placeholder pseudo-element.

<style>
        {`
          ::placeholder {
            font-size: 16px;
          }
        `}
      </style>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.