mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:43:25 +00:00
switch animation
This commit is contained in:
@@ -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>
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user