@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
63 lines (60 loc) • 1.98 kB
text/typescript
import { BaseStyle, BorderStyle, FontStyle } from "../../base";
export interface MediaRecorderStyleInterface extends BaseStyle {
pauseIconTint?: string;
playIconTint?: string;
closeIconTint?: string;
timerTextFont?: FontStyle;
timerTextColor?: FontStyle;
submitIconTint?: string;
startIconTint?: string;
stopIconTint?: string;
timerTextstyle?: string;
audioBarTint?: string;
}
export class MediaRecorderStyle extends BaseStyle {
pauseIconTint?: string;
playIconTint?: string;
closeIconTint?: string;
timerTextFont?: FontStyle;
timerTextColor?: FontStyle;
submitIconTint?: string;
startIconTint?: string;
stopIconTint?: string;
timerTextstyle?: string;
audioBarTint?: string;
constructor({
height = "auto",
width = "auto",
backgroundColor = "rgba(20, 20, 20, 0.04)",
border = new BorderStyle({}),
borderRadius = 8,
pauseIconTint = "rgb(51, 153, 255)",
playIconTint = "rgb(51, 153, 255)",
closeIconTint = "rgba(20, 20, 20, 0.58)",
startIconTint = "rgb(51, 153, 255)",
stopIconTint = "rgb(237, 26, 26)",
submitIconTint = "rgba(237, 26, 26)",
audioBarTint = "rgba(20, 20, 20, 0.58)",
timerTextFont = undefined,
timerTextstyle = "normal",
timerTextColor,
}: MediaRecorderStyleInterface) {
super({
backgroundColor,
border,
borderRadius,
height,
width
});
this.pauseIconTint = pauseIconTint;
this.playIconTint = playIconTint;
this.closeIconTint = closeIconTint;
this.timerTextFont = timerTextFont;
this.timerTextColor = timerTextColor;
this.submitIconTint = submitIconTint;
this.startIconTint = startIconTint;
this.stopIconTint = stopIconTint;
this.timerTextstyle = timerTextstyle;
this.audioBarTint = audioBarTint;
}
}