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

View File

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