Skip to content

Commit 24f16cc

Browse files
authored
Hint - support container test id (#1364)
* Hint - support container test id * small refactor
1 parent afa371e commit 24f16cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/hint/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,11 +461,11 @@ class Hint extends Component<HintProps, HintState> {
461461
}
462462

463463
renderHintContainer() {
464-
const {style, ...others} = this.props;
465-
delete others.testID;
464+
const {style, testID, ...others} = this.props;
466465
return (
467466
<View
468467
{...others}
468+
testID={`${testID}.container`}
469469
style={[styles.container, style, this.getContainerPosition()]}
470470
>
471471
{this.renderHint()}

0 commit comments

Comments
 (0)