I have in my react native project header with this structure:
<View style={styles.header}>
<View style={styles.leftIcon}>
<TouchableOpacity accessibilityRole="button" />
</View>
<View style={styles.title}>
<Text accessibilityRole="header">Screen Title</Text>
</View>
<View style={styles.rightIcon}>
<TouchableOpacity accessibilityRole="button" />
</View>
</View>
Visually, the layout is correct (back icon on the left, title centered, close/share icon on the right). VoiceOver and TalkBack read them in this order:
Left icon
Title
Right icon
I want the screen reader to read:
Title
Left icon
Right icon
Is there any way to control the screen reader order in React Native, without changing the JSX element order and adjust the layout with absolute positioning?