@lad-tech/mobydick-core
Version:
React Native components library focused on usability, accessibility and developer experience
31 lines (27 loc) • 773 B
text/typescript
import {Platform} from 'react-native';
import {TFontWeight} from '../types';
export const fontResolver = (weight: TFontWeight) => {
const map = {
[]: Platform.select({
android: 'Inter_700Bold',
ios: 'Inter-Bold',
default: 'Inter_700Bold',
}),
[]: Platform.select({
android: 'Inter_600SemiBold',
ios: 'Inter-SemiBold',
default: 'Inter_600SemiBold',
}),
[]: Platform.select({
android: 'Inter_500Medium',
ios: 'Inter-Medium',
default: 'Inter_500Medium',
}),
[]: Platform.select({
android: 'Inter_400Regular',
ios: 'Inter-Regular',
default: 'Inter_400Regular',
}),
};
return map[weight];
};