UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

63 lines (60 loc) 1.97 kB
import { BaseStyle, BaseStyleInterface, FontStyle, FontStyleInterface } from "../../shared"; export interface CallRecordingsStyleInterface extends BaseStyleInterface { titleFont?: FontStyleInterface; titleColor?: string; dateTextFont?: FontStyleInterface; dateTextColor?: string; emptyTextFont?: FontStyleInterface; emptyTextColor?: string; backIconTint?: string; durationTextFont?: FontStyleInterface; durationTextColor?: string; loadingIconTint?: string; } export class CallRecordingsStyle extends BaseStyle { titleFont?: FontStyleInterface; titleColor?: string; dateTextFont?: FontStyleInterface; dateTextColor?: string; emptyTextFont?: FontStyleInterface; emptyTextColor?: string; backIconTint?: string; durationTextFont?: FontStyleInterface; durationTextColor?: string; loadingIconTint?: string; constructor({ titleFont = { fontSize: 20, fontWeight: "600"}, backgroundColor = "white", border, borderRadius, height, titleColor = "#000", dateTextFont, dateTextColor, emptyTextColor, emptyTextFont, backIconTint, loadingIconTint, durationTextColor, durationTextFont, width }: CallRecordingsStyleInterface) { super({ backgroundColor: backgroundColor, border: border, borderRadius: borderRadius, height: height, width: width }); this.titleColor = titleColor; this.titleFont = titleFont; this.dateTextFont = dateTextFont; this.dateTextColor = dateTextColor; this.emptyTextColor = emptyTextColor; this.emptyTextFont = emptyTextFont; this.backIconTint = backIconTint; this.durationTextColor = durationTextColor; this.durationTextFont = durationTextFont; this.loadingIconTint = loadingIconTint; } }