Skip to content

Commit 0bfbf30

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN: Fix testID on Switch
Summary: My recent refactor of `Switch` broke `testID` from being passed down to the underlying component. This fixes that. Reviewed By: TheSavior Differential Revision: D9127216 fbshipit-source-id: 6d442b1cc19cf9f44cb48faac58e5abe9f36064b
1 parent 4d0a194 commit 0bfbf30

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Libraries/Components/Switch/Switch.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ export type Props = $ReadOnly<{|
7373
* event, use `onChange`.
7474
*/
7575
onValueChange?: ?(value: boolean) => Promise<void> | void,
76-
77-
/**
78-
* Identifier used to find this view in tests.
79-
*/
80-
testID?: ?string,
8176
|}>;
8277

8378
// @see ReactSwitchManager.java
@@ -133,7 +128,6 @@ class Switch extends React.Component<Props> {
133128
onChange,
134129
onValueChange,
135130
style,
136-
testID,
137131
thumbColor,
138132
trackColor,
139133
value,

0 commit comments

Comments
 (0)