【发布时间】:2021-09-10 07:48:06
【问题描述】:
我有一个动画视图堆栈,其中包含一个可以导航到另一个屏幕的 Pressable 组件。但是当我按下按钮时,导航会在容器动画之后发生。我想让它变得即时。
<Animated.View>
<Animated.View style={[styles.headerContainer, titleStyle]}>
<Animated.Text style={styles.verificationTitle}>
{activationBoxTitle}
</Animated.Text>
<ArrowRightWhite />
</Animated.View>
<Animated.View style={[styles.container, descriptionContainerStyle]}>
<ImageBackground
style={styles.backgroundImage}
resizeMode="cover"
source={images.activateAccBackground}
>
<Pressable
onPress={() => navigation.navigate(
"GeneralQuestions", {
screen: navigateActivationToPage
})}
>
<Animated.Text style={descriptionStyle}>
{activationBoxDescription}
</Animated.Text>
</Pressable>
</ImageBackground>
</Animated.View>
</Animated.View>
我该怎么做?
【问题讨论】:
标签: react-native animation react-native-navigation