mirror of
https://github.com/status-im/react-navigation-stack.git
synced 2025-01-27 14:56:02 +00:00
Remove accessible props from nav buttons children
This commit is contained in:
parent
6a0c6de329
commit
1931b5b968
@ -93,6 +93,7 @@ class HeaderBackButton extends React.PureComponent {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Text
|
<Text
|
||||||
|
accessible={false}
|
||||||
onLayout={this._onTextLayout}
|
onLayout={this._onTextLayout}
|
||||||
style={[styles.title, !!tintColor && { color: tintColor }, titleStyle]}
|
style={[styles.title, !!tintColor && { color: tintColor }, titleStyle]}
|
||||||
numberOfLines={1}
|
numberOfLines={1}
|
||||||
@ -107,6 +108,7 @@ class HeaderBackButton extends React.PureComponent {
|
|||||||
|
|
||||||
let button = (
|
let button = (
|
||||||
<TouchableItem
|
<TouchableItem
|
||||||
|
accessible={false}
|
||||||
accessibilityComponentType="button"
|
accessibilityComponentType="button"
|
||||||
accessibilityLabel={title}
|
accessibilityLabel={title}
|
||||||
accessibilityTraits="button"
|
accessibilityTraits="button"
|
||||||
|
@ -9,6 +9,7 @@ const HeaderTitle = ({ style, ...rest }) => (
|
|||||||
{...rest}
|
{...rest}
|
||||||
style={[styles.title, style]}
|
style={[styles.title, style]}
|
||||||
accessibilityTraits="header"
|
accessibilityTraits="header"
|
||||||
|
accessible={false}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user