From 0bfbf307c8463d53abf0c4cec2655939b7075c09 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Wed, 1 Aug 2018 19:02:18 -0700 Subject: [PATCH] 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 --- Libraries/Components/Switch/Switch.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Libraries/Components/Switch/Switch.js b/Libraries/Components/Switch/Switch.js index 237519a5e..b400588a6 100644 --- a/Libraries/Components/Switch/Switch.js +++ b/Libraries/Components/Switch/Switch.js @@ -73,11 +73,6 @@ export type Props = $ReadOnly<{| * event, use `onChange`. */ onValueChange?: ?(value: boolean) => Promise | void, - - /** - * Identifier used to find this view in tests. - */ - testID?: ?string, |}>; // @see ReactSwitchManager.java @@ -133,7 +128,6 @@ class Switch extends React.Component { onChange, onValueChange, style, - testID, thumbColor, trackColor, value,