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
26 lines (25 loc) • 773 B
JavaScript
import { BorderStyle } from './BorderStyle';
/**
* @class BaseStyle
* @description BaseStyle class is the parent class used for defining the basic styling props.
* @param {string} width
* @param {string|number} height
* @param {string} backgroundColor
* @param {number} borderRadius
* @param {object} border
*/
export class BaseStyle {
height;
width;
backgroundColor;
border;
borderRadius;
constructor({ width = '100%', height = '100%', backgroundColor = 'white', border = new BorderStyle({}), borderRadius = 8, }) {
this.height = height;
this.width = width;
this.backgroundColor = backgroundColor;
this.border = border;
this.borderRadius = borderRadius;
}
}
//# sourceMappingURL=BaseStyle.js.map