react-native-modern-elements
Version:
A modern, customizable UI component library for React Native
30 lines (29 loc) • 936 B
TypeScript
type ScrollShadowConfig = {
threshold?: number;
backgroundColor?: string;
borderWidth?: number;
borderBottomWidthColors?: string;
};
declare const useScrollShadowAnimation: ({ threshold, backgroundColor, borderWidth, borderBottomWidthColors, }?: ScrollShadowConfig) => {
scrollHandler: import("react-native-reanimated").ScrollHandlerProcessed<Record<string, unknown>>;
animatedShadowStyle: {
shadowColor: string;
shadowOpacity: number;
shadowRadius: number;
elevation: number;
backgroundColor: string;
zIndex: number;
};
staticShadowOffset: {
shadowOffset: {
width: number;
height: number;
};
};
scrollY: import("react-native-reanimated").SharedValue<number>;
borderAnimatedStyle: {
borderBottomWidth: number;
borderBottomColor: string;
};
};
export default useScrollShadowAnimation;