PresenceTransition | NativeBase | Universal Components for React and React Native

Search
K
Hire us
If you are starting a new project, please try gluestack-ui for better performance and new design.
PresenceTransition
PresenceTransition provides a declarative API to add entry and exit transitions.
Fade
Playground
ScaleFade
Playground
Props
PresenceTransition implements
onTransitionComplete
Callback invoked when transition is completed
Type: (s: "entered" | "exited") => any
initial
Styles before the transition starts
animate
Entry animation styles
exit
Exit animation styles
visible
Determines whether to start the animation
Type: boolean
Default: false
as
Accepts a Component to be rendered as Wrapper. Defaults to `View`
Type: any
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
Gluestack logo
gluestack-ui