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 { StyleSheet, Text } from 'react-native';
import { ButtonProps, StyleSheet, Text } from 'react-native';
import Touchable from 'react-native-platform-touchable';
import { themes } from '../../lib/constants';
import sharedStyles from '../../views/Styles';
import ActivityIndicator from '../ActivityIndicator';
interface IButtonProps {
interface IButtonProps extends ButtonProps {
title: string;
type: string;
onPress(): void;

View File

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

View File

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