Skip to main content

Switch

A Switch is a visual control that toggles between two opposite states: on and off.

Vector icon

Usage

import React from 'react';
import { Switch } from './components';

const Example = () => {
return <Switch thumbColor="primary" value={true} />;
};

export default Example;

Props

Extends the SwitchProps from React Native.

trackColor

Type: string

thumbColor

Type: string

ios_backgroundColor

Type: string