Nativebase logo
NativeBase
Data Display
Typography
Disclosure
Media and Icons
Others
PresenceTransition
PresenceTransition provides a declarative API to add entry and exit transitions.
Show Code
Playground
Fade
Playground
ScaleFade
Playground
Props
ISupportedTransitions
Copy
interface ISupportedTransitions {
opacity?: number;
translateY?: number;
translateX?: number;
scale?: number;
scaleX?: number;
scaleY?: number;
rotate?: string;
}
ITransitionStyleProps
Copy
interface ITransitionStyleProps extends ISupportedTransitions {
transition?: {
type?: "timing" | "spring",
easing?: (value: number) => number,
overshootClamping?: boolean,
restDisplacementThreshold?: number,
restSpeedThreshold?: number,
velocity?: number | { x: number, y: number },
bounciness?: number,
speed?: number,
tension?: number,
friction?: number,
stiffness?: number,
mass?: number,
damping?: number,
delay?: number,
duration?: number,
useNativeDriver?: boolean,
};
}
Nativebase logo
MadeWithNativeBase