@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
50 lines (48 loc) • 835 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";
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";
fontSize?: number;
}