@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
26 lines (25 loc) • 830 B
text/typescript
import { StatusIndicatorStyle } from './StatusIndicatorStyle';
//@ts-ignore
import { StyleProp, ViewProps, ViewStyle } from 'react-native';
import { ImageType } from '../../base';
/**
* @class StatusIndicatorConfiguration
* @description StatusIndicatorConfiguration class is used for defining the StatusIndicator template.
* @param {object} style
* @param {string} backgroundImage
*/
export class StatusIndicatorConfiguration {
style?: StyleProp<ViewStyle>;
backgroundImage?: ImageType;
constructor({
style = new StatusIndicatorStyle({}) as ViewProps,
backgroundImage,
}: StatusIndicatorConfigurationInterface) {
this.style = style;
this.backgroundImage = backgroundImage;
}
}
export interface StatusIndicatorConfigurationInterface {
style?: StyleProp<ViewStyle>;
backgroundImage?: ImageType;
}