Is it possible to enable/disable the navigation transition animation based on a specifically passed param?
navigation.navigate('SomeScreen', {
data: someData,
withAnimation: true,
});
In the example above, the withAnimation param is set to true, so I want the animation (forRevealFromBottomAndroid) set here to be active:
<Stack.Screen
name="SomeScreen"
component={SomeScreen}
options={{
headerLeft: null,
headerShown: false,
cardStyleInterpolator:
CardStyleInterpolators.forRevealFromBottomAndroid,
}}
/>