react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
24 lines (21 loc) • 856 B
text/typescript
;
// TODO: Fix me
// @ts-ignore RNSVG doesn't export types for web, see https://github.com/software-mansion/react-native-svg/pull/2801
import type { CSSLinearGradientProps } from '../../../types';
import { processSVGGradientStops } from '../processors';
import type { SvgStyleBuilderConfig } from './common';
// TODO: Fix me
// @ts-ignore RNSVG doesn't export types for web, see https://github.com/software-mansion/react-native-svg/pull/2801
export const SVG_LINEAR_GRADIENT_PROPERTIES_CONFIG: SvgStyleBuilderConfig<CSSLinearGradientProps> =
{
x1: true,
x2: true,
y1: true,
y2: true,
gradient: { process: processSVGGradientStops },
gradientUnits: {
process: (gradinetUnits) => (gradinetUnits === 'userSpaceOnUse' ? 1 : 0),
},
// TODO: implement 'gradientTransform'
// gradientTransform: true,
};