react-native-chating-ui-kit
Version:
CometChat React Native UI Kit is a collection of custom UI Components designed to build text , chat and calling features in your application. The UI Kit is developed to keep developers in mind and aims to reduce development efforts significantly
38 lines • 1.24 kB
JavaScript
import { BaseStyle } from '../../base/BaseStyle';
export class AvatarStyle extends BaseStyle {
nameTextFont;
nameTextColor;
outerView;
outerViewSpacing;
/**
*
* @param {Object} param0
* @field height
* @field width
* @field border
* @field borderRadius
* @field backgroundColor
* @field nameTextColor
* @field nameTextFont
* @field outerView
* @field outerViewSpacing
*/
constructor({ height = 40, width = 40, border = { borderWidth: 1, borderStyle: 'solid', borderColor: 'black' }, borderRadius = 30, backgroundColor = 'rgba(20,20,20,0.58)', nameTextColor = 'rgba(255, 255, 255,0.89)', nameTextFont = {
fontFamily: undefined,
fontWeight: 'normal',
fontSize: 18,
}, outerView = { borderWidth: 0, borderStyle: 'solid', borderColor: 'black' }, outerViewSpacing = 0, }) {
super({
border,
borderRadius,
backgroundColor,
height,
width,
});
this.nameTextFont = nameTextFont;
this.nameTextColor = nameTextColor;
this.outerView = outerView;
this.outerViewSpacing = outerViewSpacing;
}
}
//# sourceMappingURL=AvatarStyle.js.map