UNPKG

@symbiot.dev/expo-animated-linear-gradient

Version:

A lightweight, animated linear gradient component built on top of expo-linear-gradient for React Native and Expo.

16 lines (15 loc) 503 B
import { Animated, ViewStyle } from 'react-native'; export type AnimatedGradientProps = { duration?: number; webDirection?: string; }; export declare const useAnimatedGradient: ({ colors, duration, webDirection, }: AnimatedGradientProps & { colors: string[]; }) => { appGradient: [Animated.AnimatedInterpolation<string>, Animated.AnimatedInterpolation<string>]; webGradient: ViewStyle; ref: import("react").RefObject<{ colors: string[]; index: number; }>; };