Create SwitchComponent.tsx
This commit is contained in:
parent
81f5c52b6a
commit
359e300cbf
|
@ -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
|
Loading…
Reference in New Issue