Skip to content

Commit

Permalink
test child with accessibilityValue, state, label
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed May 26, 2022
1 parent 5488aba commit 751b83e
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,24 @@ class AccessibilityExample extends React.Component<{}> {
</View>
</TouchableNativeFeedback>
</RNTesterBlock>

<RNTesterBlock title="TouchableNativeFeedback with non-accessible child Texts, one of them have the accessibilityLabel (contentDescription)">
<TouchableNativeFeedback
accessible={true}
importantForAccessibility="yes"
accessibilityRole="button">
<View>
<Text accessible={false}>Text number 1</Text>
<Text
accessible={false}
accessibilityLabel="this is my label"
accessibilityState={{disabled: true}}
accessibilityValue={{text: 'this is the accessibilityValue'}}>
Text number 2<Text accessible={false}>Text number 3</Text>
</Text>
</View>
</TouchableNativeFeedback>
</RNTesterBlock>
</View>
);
}
Expand Down

0 comments on commit 751b83e

Please sign in to comment.