UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

31 lines (30 loc) 1.22 kB
import { ImageSourcePropType, ImageStyle, TextStyle, ViewStyle } from "react-native"; import { CallButtonStyle } from "../calls/CometChatCallButtons"; import { AvatarStyle } from "../shared/views/CometChatAvatar"; import { StatusIndicatorStyles } from "../shared/views/CometChatStatusIndicator"; import { CometChatTheme } from "../theme/type"; import { JSX } from "react"; export declare const styles: { container: { flexDirection: "row"; width: "100%"; }; backButtonIconStyle: { height: number; width: number; resizeMode: "contain"; }; }; export type MessageHeaderStyle = { containerStyle: ViewStyle; titleTextStyle: TextStyle; subtitleTextStyle: TextStyle; backButtonStyle: ViewStyle; backButtonIcon?: ImageSourcePropType | JSX.Element; backButtonIconStyle: ImageStyle; typingIndicatorTextStyle: TextStyle; callButtonStyle: Partial<CallButtonStyle>; avatarStyle: Partial<AvatarStyle>; statusIndicatorStyle: Partial<StatusIndicatorStyles>; }; export declare const getMessageHeaderStyle: (color: CometChatTheme["color"], spacing: CometChatTheme["spacing"], typography: CometChatTheme["typography"]) => MessageHeaderStyle;