【发布时间】:2020-11-24 05:52:39
【问题描述】:
是否可以根据特定传递的参数启用/禁用导航过渡动画?
navigation.navigate('SomeScreen', {
data: someData,
withAnimation: true,
});
在上面的示例中,withAnimation 参数设置为 true,所以我希望此处设置的动画 (forRevealFromBottomAndroid) 处于活动状态:
<Stack.Screen
name="SomeScreen"
component={SomeScreen}
options={{
headerLeft: null,
headerShown: false,
cardStyleInterpolator:
CardStyleInterpolators.forRevealFromBottomAndroid,
}}
/>
【问题讨论】:
标签: reactjs react-native animation react-navigation