Skip to content

Commit

Permalink
Fixes eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw committed Apr 12, 2024
1 parent 97dd376 commit fcd32de
Showing 1 changed file with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1878,19 +1878,22 @@ exports.examples = [
{
title: 'TextInput with aria-labelledby attribute"',
render(): React.Element<typeof View> {
const theme = React.useContext(RNTesterThemeContext);
return (
<View>
<Text
nativeID="testAriaLabelledBy"
style={{color: theme.SecondaryLabelColor}}>
Phone Number
</Text>
<TextInput
aria-labelledby={'testAriaLabelledBy'}
style={styles.default}
/>
</View>
<RNTesterThemeContext.Consumer>
{theme => (
<View>
<Text
nativeID="testAriaLabelledBy"
style={{color: theme.SecondaryLabelColor}}>
Phone Number
</Text>
<TextInput
aria-labelledby={'testAriaLabelledBy'}
style={styles.default}
/>
</View>
)}
</RNTesterThemeContext.Consumer>
);
},
},
Expand Down

0 comments on commit fcd32de

Please sign in to comment.