Skip to content

Commit 494d9a2

Browse files
authored
adding testID to Dash (#2382)
1 parent 67bcb03 commit 494d9a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/dash/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface DashProps extends ViewProps {
2222
}
2323

2424
const Dash = (props: DashProps) => {
25-
const {containerStyle, vertical, gap, length, thickness, color, style} = props;
25+
const {containerStyle, vertical, gap, length, thickness, color, style, testID} = props;
2626
const [measurements, setMeasurements] = useState<Layout | undefined>();
2727

2828
const onDashLayout = useCallback((event: LayoutChangeEvent) => {
@@ -63,7 +63,7 @@ const Dash = (props: DashProps) => {
6363
};
6464

6565
return (
66-
<View onLayout={onDashLayout} style={lineStyle}>
66+
<View onLayout={onDashLayout} style={lineStyle} testID={testID}>
6767
{renderDash()}
6868
</View>
6969
);

0 commit comments

Comments
 (0)