Skip to content

Commit

Permalink
RN: Fix testID on Switch
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yungsters authored and facebook-github-bot committed Aug 2, 2018
1 parent 4d0a194 commit 0bfbf30
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Libraries/Components/Switch/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ export type Props = $ReadOnly<{|
* event, use `onChange`.
*/
onValueChange?: ?(value: boolean) => Promise<void> | void,

/**
* Identifier used to find this view in tests.
*/
testID?: ?string,
|}>;

// @see ReactSwitchManager.java
Expand Down Expand Up @@ -133,7 +128,6 @@ class Switch extends React.Component<Props> {
onChange,
onValueChange,
style,
testID,
thumbColor,
trackColor,
value,
Expand Down

0 comments on commit 0bfbf30

Please sign in to comment.