accessibilityLabel

This commit is contained in:
Minseo Lee 2024-02-24 18:29:01 +09:00
parent 7a920d2eb4
commit 5809dd0624
3 changed files with 4 additions and 4 deletions

View file

@ -51,8 +51,8 @@ export const NotFoundScreen = () => {
</Text> </Text>
<Button <Button
type="primary" type="primary"
label={canGoBack ? _(msg`Go back`) : _(msg`Go home`)} label={canGoBack ? _(msg`Go Back`) : _(msg`Go Home`)}
accessibilityLabel={canGoBack ? _(msg`Go Back`) : _(msg`Go home`)} accessibilityLabel={canGoBack ? _(msg`Go back`) : _(msg`Go home`)}
accessibilityHint={canGoBack ? _(msg`Returns to previous page`) : _(msg`Returns to home page`)} accessibilityHint={canGoBack ? _(msg`Returns to previous page`) : _(msg`Returns to home page`)}
onPress={onPressHome} onPress={onPressHome}
/> />

View file

@ -103,7 +103,7 @@ export function ProfileFeedScreen(props: Props) {
<View style={{flexDirection: 'row'}}> <View style={{flexDirection: 'row'}}>
<Button <Button
type="default" type="default"
accessibilityLabel={_(msg`Go Back`)} accessibilityLabel={_(msg`Go back`)}
accessibilityHint={_(msg`Returns to previous page`)} accessibilityHint={_(msg`Returns to previous page`)}
onPress={onPressBack} onPress={onPressBack}
style={{flexShrink: 1}}> style={{flexShrink: 1}}>

View file

@ -894,7 +894,7 @@ function ErrorScreen({error}: {error: string}) {
<View style={{flexDirection: 'row'}}> <View style={{flexDirection: 'row'}}>
<Button <Button
type="default" type="default"
accessibilityLabel={_(msg`Go Back`)} accessibilityLabel={_(msg`Go back`)}
accessibilityHint={_(msg`Return to previous page`)} accessibilityHint={_(msg`Return to previous page`)}
onPress={onPressBack} onPress={onPressBack}
style={{flexShrink: 1}}> style={{flexShrink: 1}}>