动画
This commit is contained in:
parent
c94fe202cc
commit
048d2a905c
@ -17,7 +17,7 @@ import {
|
|||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
View
|
View
|
||||||
} from 'react-native';
|
} 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";
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
||||||
|
|
||||||
export default function AskScreen() {
|
export default function AskScreen() {
|
||||||
@ -153,19 +153,19 @@ export default function AskScreen() {
|
|||||||
// );
|
// );
|
||||||
|
|
||||||
// 创建动画样式
|
// 创建动画样式
|
||||||
const welcomeStyle = useAnimatedStyle(() => {
|
// const welcomeStyle = useAnimatedStyle(() => {
|
||||||
return {
|
// return {
|
||||||
opacity: fadeAnim.value,
|
// opacity: fadeAnim.value,
|
||||||
pointerEvents: isHello ? 'auto' : 'none',
|
// pointerEvents: isHello ? 'auto' : 'none',
|
||||||
};
|
// };
|
||||||
});
|
// });
|
||||||
|
|
||||||
const chatStyle = useAnimatedStyle(() => {
|
// const chatStyle = useAnimatedStyle(() => {
|
||||||
return {
|
// return {
|
||||||
opacity: fadeAnimChat.value,
|
// opacity: fadeAnimChat.value,
|
||||||
pointerEvents: isHello ? 'none' : 'auto',
|
// pointerEvents: isHello ? 'none' : 'auto',
|
||||||
};
|
// };
|
||||||
});
|
// });
|
||||||
|
|
||||||
// 触发动画
|
// 触发动画
|
||||||
// useEffect(() => {
|
// useEffect(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user