@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.
10 lines (9 loc) • 509 B
TypeScript
import { LinearGradientProps } from 'expo-linear-gradient';
import { AnimatedGradientProps } from '../hooks/use-animated-gradient';
export type Scheme = 'dark' | 'light';
export type AnimatedSchemedLinearGradientProps = AnimatedGradientProps & Omit<LinearGradientProps, 'colors'> & {
duration?: number;
scheme?: Scheme;
colors: Record<Scheme, string[]>;
};
export declare const AnimatedSchemedLinearGradient: (props: AnimatedSchemedLinearGradientProps) => import("react/jsx-runtime").JSX.Element;