动画
This commit is contained in:
parent
c94fe202cc
commit
048d2a905c
@ -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(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user