This commit is contained in:
Junhui Chen 2025-08-07 11:43:41 +08:00
parent c94fe202cc
commit 048d2a905c

View File

@ -17,7 +17,7 @@ import {
TouchableOpacity,
View
} from 'react-native';
import Animated, { useAnimatedStyle, useSharedValue } from 'react-native-reanimated';
import Animated, { useSharedValue } from 'react-native-reanimated';
import { useSafeAreaInsets } from "react-native-safe-area-context";
export default function AskScreen() {
@ -153,19 +153,19 @@ export default function AskScreen() {
// );
// 创建动画样式
const welcomeStyle = useAnimatedStyle(() => {
return {
opacity: fadeAnim.value,
pointerEvents: isHello ? 'auto' : 'none',
};
});
// const welcomeStyle = useAnimatedStyle(() => {
// return {
// opacity: fadeAnim.value,
// pointerEvents: isHello ? 'auto' : 'none',
// };
// });
const chatStyle = useAnimatedStyle(() => {
return {
opacity: fadeAnimChat.value,
pointerEvents: isHello ? 'none' : 'auto',
};
});
// const chatStyle = useAnimatedStyle(() => {
// return {
// opacity: fadeAnimChat.value,
// pointerEvents: isHello ? 'none' : 'auto',
// };
// });
// 触发动画
// useEffect(() => {