Skip to content

Commit

Permalink
Added the Header accessibility trait to the header title (#948)
Browse files Browse the repository at this point in the history
Without this trait, VoiceOver on IOS does not identify the title as a header, which it is.
  • Loading branch information
cannona authored and satya164 committed Apr 7, 2017
1 parent 669da3e commit 2974700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/HeaderTitle.js
Expand Up @@ -18,7 +18,7 @@ type Props = {
};

const HeaderTitle = ({ style, ...rest }: Props) => (
<Text numberOfLines={1} {...rest} style={[styles.title, style]} />
<Text numberOfLines={1} {...rest} style={[styles.title, style]} accessibilityTraits="header" />
);

const styles = StyleSheet.create({
Expand Down

0 comments on commit 2974700

Please sign in to comment.