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