react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
13 lines (10 loc) • 329 B
text/typescript
;
const VECTOR_EFFECT_CSS_VALUES: Record<string, string> = {
none: 'none',
default: 'none',
nonScalingStroke: 'non-scaling-stroke',
'non-scaling-stroke': 'non-scaling-stroke',
inherit: 'inherit',
};
export const processVectorEffect = (value: string): string =>
VECTOR_EFFECT_CSS_VALUES[value] ?? value;