AM
Size: a a a
AM
c
И
9
VP
DS
9
VD
import * as React from 'react';
import { Text, Platform } from 'react-native';
type PropsType = {
testLabel: string,
children?: React.Node
};
const TestableText = ({
testLabel, children, ...props
}: PropsType) => (Platform.OS === 'android' ? (
<Text accessibilityLabel={testLabel} {...props}>
{ children }
</Text>
) : (
<Text testID={testLabel} {...props}>
{ children }
</Text>
));
export default TestableText;
VP
import * as React from 'react';
import { Text, Platform } from 'react-native';
type PropsType = {
testLabel: string,
children?: React.Node
};
const TestableText = ({
testLabel, children, ...props
}: PropsType) => (Platform.OS === 'android' ? (
<Text accessibilityLabel={testLabel} {...props}>
{ children }
</Text>
) : (
<Text testID={testLabel} {...props}>
{ children }
</Text>
));
export default TestableText;
QA
AG
M
ЖК
AG
AG
DS
AG