@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
28 lines (26 loc) • 741 B
text/typescript
/**
* @class FontStyle
* @description
* @param {String} fontFamily
* @param {String} fontWeight
* @param {String} fontSize
*/
export class FontStyle {
fontFamily?: string | undefined;
fontWeight?: 'normal'| 'bold'| '100'| '200'| '300'| '400'| '500'| '600'| '700'| '800'| '900' | string;
fontSize?: number;
constructor({
fontFamily = undefined,
fontWeight = 'normal',
fontSize = 16,
}: FontStyleInterface) {
this.fontFamily = fontFamily;
this.fontWeight = fontWeight;
this.fontSize = fontSize;
}
}
export interface FontStyleInterface {
fontFamily?: string | undefined;
fontWeight?: 'normal'| 'bold'| '100'| '200'| '300'| '400'| '500'| '600'| '700'| '800'| '900' | string;
fontSize?: number;
}