How to have input with label (accessibility concern)?

I’m coming from a web background but I’m new to native development and expo. I’ve read that React Native Web has good accessibility support, however I can’t see how to have a label associated with an input: HTML label tag

This is HTML 101 so I’m surprised I can’t find the answer. Is accessibility in fact not a 1st class citizen of React Native Web and therefore Expo Web?

https://reactnative.dev/docs/0.53/textinput

<TextInput
    style={{height: 40, borderColor: 'gray', borderWidth: 1}}
    onChangeText={(text) => this.setState({text})}
    value={this.state.text}
  />

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