UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

15 lines (12 loc) • 408 B
'use strict'; 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 => Object.prototype.hasOwnProperty.call(VECTOR_EFFECT_CSS_VALUES, value) ? VECTOR_EFFECT_CSS_VALUES[value] : value;