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:
parent
4d0a194da3
commit
0bfbf307c8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue