@lad-tech/mobydick-core
Version:
React Native components library focused on usability, accessibility and developer experience
14 lines (11 loc) • 382 B
text/typescript
import {TextStyle} from 'react-native';
import {TFontWeight} from '../types';
export const getWeight = (weight: TFontWeight): TextStyle['fontWeight'] => {
const map: Record<TFontWeight, TextStyle['fontWeight']> = {
[]: '700',
[]: '600',
[]: '500',
[]: '400',
};
return map[weight];
};