Skip to content

Commit 6161b9a

Browse files
feat: add label on navigate up button
Through tests on system settings app and system messages app, a user hears Navigate up when he clicks on back button. So I used this as a label on back button.
1 parent cbc796a commit 6161b9a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/nav/ChatNavBar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class ChatNavBar extends PureComponent<Props> {
6262
>
6363
<NavButton
6464
name="arrow-left"
65+
accessibilityLabel="Navigate up"
6566
color={color}
6667
onPress={() => {
6768
NavigationService.dispatch(navigateBack());

src/nav/ModalNavBar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class ModalNavBar extends PureComponent<Props> {
4444
{canGoBack && (
4545
<NavButton
4646
name="arrow-left"
47+
accessibilityLabel="Navigate up"
4748
onPress={() => {
4849
NavigationService.dispatch(navigateBack());
4950
}}

src/nav/ModalSearchNavBar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class ModalSearchNavBar extends PureComponent<Props> {
3939
{canGoBack && (
4040
<NavButton
4141
name="arrow-left"
42+
accessibilityLabel="Navigate up"
4243
onPress={() => {
4344
NavigationService.dispatch(navigateBack());
4445
}}

0 commit comments

Comments
 (0)