react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
19 lines (15 loc) • 392 B
text/typescript
;
import type { ColorValue } from 'react-native';
import { processColor, type ValueProcessor } from '../../../native';
export const processColorSVG: ValueProcessor<
ColorValue | number,
number | string
> = (value) => {
if (value === 'none') {
return 'transparent';
}
if (value === 'currentColor') {
return 'currentColor';
}
return processColor(value);
};