@rohitninawe/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
48 lines • 2.33 kB
JavaScript
import { BaseStyle, BorderStyle, FontStyle } from "../shared";
export class GroupMembersStyle extends BaseStyle {
titleFont;
titleColor;
backIconTint;
searchBorder;
searchBorderRadius;
searchBackgroundColor;
searchTextFont;
searchTextColor;
searchIconTint;
onlineStatusColor;
separatorColor;
loadingIconTint;
emptyTextColor;
emptyTextFont;
errorTextColor;
errorTextFont;
avatarStyle;
listItemStyle;
statusIndicatorStyle;
constructor({ width = "100%", height = "100%", backgroundColor = "rgb(255,255,255)", border = new BorderStyle({}), borderRadius = 0, titleFont = new FontStyle({ fontSize: 20, fontWeight: "500" }), titleColor = "rgba(20,20,20,0.9)", backIconTint = "rgb(51, 153, 255)", searchBorder = new BorderStyle({ borderColor: "rgba(20, 20, 20, 0.04)" }), searchBorderRadius = 8, searchBackgroundColor = "rgba(20, 20, 20, 0.04)", searchTextFont = new FontStyle({ fontSize: 17, fontWeight: "400" }), searchTextColor = "rgba(20,20,20,0.6)", searchIconTint = "rgba(20,20,20,0.4)", onlineStatusColor = "rgb(0,200,11)", separatorColor = "rgba(20,20,20,0.06)", loadingIconTint = "rgba(20,20,20,0.59)", emptyTextColor = "rgba(20,20,20,0.3)", emptyTextFont = new FontStyle({ fontSize: 20, fontWeight: "500" }), errorTextColor = "rgb(255,59,48)", errorTextFont = new FontStyle({ fontSize: 20, fontWeight: "400" }), }) {
super({
height,
backgroundColor,
border,
borderRadius,
width
});
this.titleFont = titleFont;
this.titleColor = titleColor;
this.backIconTint = backIconTint;
this.searchBorder = searchBorder;
this.searchBorderRadius = searchBorderRadius;
this.searchBackgroundColor = searchBackgroundColor;
this.searchTextFont = searchTextFont;
this.searchTextColor = searchTextColor;
this.searchIconTint = searchIconTint;
this.onlineStatusColor = onlineStatusColor;
this.separatorColor = separatorColor;
this.loadingIconTint = loadingIconTint;
this.emptyTextColor = emptyTextColor;
this.emptyTextFont = emptyTextFont;
this.errorTextColor = errorTextColor;
this.errorTextFont = errorTextFont;
}
}
//# sourceMappingURL=GroupMemberStyle.js.map