diff --git a/suite-native/atoms/src/Switch.tsx b/suite-native/atoms/src/Switch.tsx index 0e1cd19deee..39ad60ed2d0 100644 --- a/suite-native/atoms/src/Switch.tsx +++ b/suite-native/atoms/src/Switch.tsx @@ -17,6 +17,7 @@ type SwitchProps = { isChecked: boolean; onChange: (value: boolean) => void; isDisabled?: boolean; // Functionality of disabled works but styles are not implemented yet (waiting for design) + testID?: string; }; const SWITCH_CONTAINER_BORDER_WIDTH = 1; @@ -89,7 +90,7 @@ const useAnimationStyles = ({ isChecked }: Pick) => { }; }; -export const Switch = ({ isChecked, onChange, isDisabled = false }: SwitchProps) => { +export const Switch = ({ isChecked, onChange, isDisabled = false, testID }: SwitchProps) => { const { applyStyle } = useNativeStyles(); const { animatedSwitchCircleStyle, animatedSwitchContainerStyle } = useAnimationStyles({ @@ -102,7 +103,7 @@ export const Switch = ({ isChecked, onChange, isDisabled = false }: SwitchProps) }; return ( - + { { setIsEnabled(enabled); @@ -110,14 +111,14 @@ export const AnalyticsConsentScreen = () => {