Skip to content

Commit 299b852

Browse files
authored
feat: add switchProp testID value to nativeProps testID attribute (#574)
1 parent cfc10e3 commit 299b852

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/render-html/src/helpers/getNativePropsForTNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function getNativePropsForTNode<
7070
children,
7171
onPress: syntheticOnPress,
7272
style: [style, passedNativeProps?.style, switchProp.style],
73-
testID: tnode.tagName || undefined
73+
testID: switchProp.testID || tnode.tagName || undefined
7474
};
7575
return nativeProps as any;
7676
}

0 commit comments

Comments
 (0)