react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
13 lines (12 loc) • 380 B
JavaScript
;
import { FONT_WEIGHT_MAPPINGS } from '../../../constants';
export const processFontWeight = value => {
if (typeof value === 'number' || !isNaN(+value)) {
return String(value);
}
if (value in FONT_WEIGHT_MAPPINGS) {
return FONT_WEIGHT_MAPPINGS[value];
}
};
export const processFontVariant = value => value.join(', ');
//# sourceMappingURL=font.js.map