iamacup / react-native-markdown-display

React Native 100% compatible CommonMark renderer
MIT License
564 stars 166 forks source link

Screen reader doesn't work on text within a view #172

Closed dnadan2 closed 8 months ago

dnadan2 commented 2 years ago

When creating a rule that returns a component to replace a particular tag it is possible to break the screen reader.

<View>
  <Text>Sample text that will not be read by a screen reader.</Text>
</View>

Even in a simple case like this the text is ignored by a screen reader (it is focused but is treated as a blank string. Remove the view and this same text is read out correctly.

(Tested in an iOS simulator using the accessibility inspector tool)