react-native-toastier
Version:
A Fully Customizable Toast Component for React Native.
32 lines • 892 B
TypeScript
import { Animated } from "react-native";
import { ToastProps } from "../types";
interface Props {
position: ToastProps['position'];
animation: ToastProps['animation'];
onClose: ToastProps['onClose'];
offset?: number;
}
declare const useToastState: ({ position, offset, animation, onClose }: Props) => {
state: {
showToast: Animated.Value;
animation: {
transform: {
translateY: Animated.Value;
}[];
} | {
transform: {
translateX: Animated.Value;
}[];
} | {
transform: {
scale: Animated.AnimatedInterpolation<string | number>;
}[];
};
};
action: {
startAnimations: () => void;
finishAnimations: () => void;
};
};
export default useToastState;
//# sourceMappingURL=useToastState.d.ts.map