レイアウト設定のデザイン調整

This commit is contained in:
harukin-expo-dev-env
2024-03-28 07:49:01 +00:00
parent a99649ba59
commit 473f3a1dba
4 changed files with 52 additions and 41 deletions

View File

@@ -4,6 +4,7 @@ import {
TouchableOpacity,
Text,
Image,
LayoutAnimation,
} from "react-native";
export const SimpleSwitch = ({
bool,
@@ -27,7 +28,10 @@ export const SimpleSwitch = ({
flexDirection: "row",
flex: 1,
}}
onPress={() => setBool(value.toString())}
onPress={() => {
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
setBool(value.toString());
}}
>
<Image
source={image}