Files
super-app/App/common/utilities/AnimationUtils.ts

18 lines
485 B
TypeScript
Raw Permalink Normal View History

import { LayoutAnimation } from "react-native";
export const NaviAnimationConfig = ({ duration }: { duration: number }) => ({
duration,
update: {
type: LayoutAnimation.Types.easeInEaseOut,
property: LayoutAnimation.Properties.opacity,
},
delete: {
type: LayoutAnimation.Types.easeInEaseOut,
property: LayoutAnimation.Properties.opacity,
},
create: {
type: LayoutAnimation.Types.easeInEaseOut,
property: LayoutAnimation.Properties.opacity,
},
});