switch animation

This commit is contained in:
Jorrin
2024-04-02 17:38:16 +02:00
parent 71025ec645
commit 4eaf04761e
2 changed files with 3 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ export default function SettingsScreen() {
checked={gestureControls} checked={gestureControls}
onCheckedChange={handleGestureControlsToggle} onCheckedChange={handleGestureControlsToggle}
> >
<MWSwitch.Thumb animation="quicker" /> <MWSwitch.Thumb />
</MWSwitch> </MWSwitch>
</XStack> </XStack>
<XStack gap="$4" alignItems="center"> <XStack gap="$4" alignItems="center">
@@ -128,7 +128,7 @@ export default function SettingsScreen() {
Autoplay Autoplay
</Text> </Text>
<MWSwitch checked={autoPlay} onCheckedChange={setAutoPlay}> <MWSwitch checked={autoPlay} onCheckedChange={setAutoPlay}>
<MWSwitch.Thumb animation="quicker" /> <MWSwitch.Thumb />
</MWSwitch> </MWSwitch>
</XStack> </XStack>
</YStack> </YStack>

View File

@@ -19,7 +19,7 @@ const MWSwitch = (props: SwitchProps) => {
}; };
const MWSwitchThumb = (props: SwitchThumbProps) => { const MWSwitchThumb = (props: SwitchThumbProps) => {
return <Switch.Thumb animation="quicker" {...props} />; return <Switch.Thumb animation="bounce" {...props} />;
}; };
MWSwitch.Thumb = MWSwitchThumb; MWSwitch.Thumb = MWSwitchThumb;