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
This commit is contained in:
Tim Yung 2018-08-01 19:02:18 -07:00 committed by Facebook Github Bot
parent 4d0a194da3
commit 0bfbf307c8
1 changed files with 0 additions and 6 deletions

View File

@ -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
@ -133,7 +128,6 @@ class Switch extends React.Component<Props> {
onChange,
onValueChange,
style,
testID,
thumbColor,
trackColor,
value,