@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
28 lines (26 loc) • 845 B
TypeScript
import { DimensionValue } from "react-native";
import { BorderStyleInterface } 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 declare class BaseStyle {
height?: DimensionValue;
width?: DimensionValue;
backgroundColor?: string;
border?: BorderStyleInterface;
borderRadius?: number;
constructor({ width, height, backgroundColor, border, borderRadius, }: BaseStyleInterface);
}
export interface BaseStyleInterface {
height?: DimensionValue;
width?: DimensionValue;
backgroundColor?: string;
border?: BorderStyleInterface;
borderRadius?: number;
}