Skip to content

Instantly share code, notes, and snippets.

@aravi365
Created March 1, 2022 06:16
Show Gist options
  • Select an option

  • Save aravi365/e55465ed313fe9d617f9ef090cccfd81 to your computer and use it in GitHub Desktop.

Select an option

Save aravi365/e55465ed313fe9d617f9ef090cccfd81 to your computer and use it in GitHub Desktop.
import {
widthPercentageToDP as wp,
heightPercentageToDP as hp,
} from 'react-native-responsive-screen';
const size = {
font1: hp('3%'),
font2: hp('2.88%'),
font3: hp('1.9%'),
font4: hp('1.6%'),
font5: hp('1.62%'),
font6: hp('2%'),
};
const weight = {
full: '900',
semi: '600',
low: '400',
bold: 'bold',
normal: 'normal',
};
const type = {
TBlack: 'TitilliumWeb-Black',
TBold: 'TitilliumWeb-Bold',
TSemiBold: 'TitilliumWeb-SemiBold',
TRegular: 'TitilliumWeb-Regular',
TLight: 'TitilliumWeb-Light',
};
export default {
size,
weight,
type,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment