add accessibilityLabel

This commit is contained in:
GleidsonDaniel 2022-04-01 17:16:23 -03:00 committed by Diego Mello
parent 45cf5778cb
commit 049556c07d
3 changed files with 4 additions and 2 deletions

View File

@ -1,12 +1,12 @@
import React from 'react'; import React from 'react';
import { StyleSheet, Text } from 'react-native'; import { ButtonProps, StyleSheet, Text } from 'react-native';
import Touchable from 'react-native-platform-touchable'; import Touchable from 'react-native-platform-touchable';
import { themes } from '../../lib/constants'; import { themes } from '../../lib/constants';
import sharedStyles from '../../views/Styles'; import sharedStyles from '../../views/Styles';
import ActivityIndicator from '../ActivityIndicator'; import ActivityIndicator from '../ActivityIndicator';
interface IButtonProps { interface IButtonProps extends ButtonProps {
title: string; title: string;
type: string; type: string;
onPress(): void; onPress(): void;

View File

@ -64,6 +64,7 @@ const ServerInput = ({
theme={theme} theme={theme}
onFocus={() => setFocused(true)} onFocus={() => setFocused(true)}
onBlur={() => setFocused(false)} onBlur={() => setFocused(false)}
accessibilityLabel='enter-workspace-url'
/> />
{focused && serversHistory?.length ? ( {focused && serversHistory?.length ? (
<View <View

View File

@ -376,6 +376,7 @@ class NewServerView extends React.Component<INewServerViewProps, INewServerViewS
style={[styles.connectButton, { marginTop: verticalScale({ size: 16, height }) }]} style={[styles.connectButton, { marginTop: verticalScale({ size: 16, height }) }]}
theme={theme} theme={theme}
testID='new-server-view-button' testID='new-server-view-button'
accessibilityLabel='new-server-view-button'
/> />
<OrSeparator theme={theme} /> <OrSeparator theme={theme} />
<Text <Text