Create SwitchComponent.tsx

This commit is contained in:
Hristo Nedelkov 2023-11-20 18:39:32 +02:00
parent 81f5c52b6a
commit 359e300cbf
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
import { Switch } from "tamagui"
const SwitchComponent = () => {
return (
<Switch
size="$1"
style={ { backgroundColor: 'grey'} }
checked={false}
onCheckedChange={() =>(console.log(a))}
>
<Switch.Thumb
style={{
right: 7,
bottom: 3,
backgroundColor: '#fff',
height: '16px',
width: '16px',
}}
/>
</Switch>
)
}
export default SwitchComponent