18 lines
485 B
TypeScript
18 lines
485 B
TypeScript
|
|
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,
|
||
|
|
},
|
||
|
|
});
|