UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

34 lines (33 loc) 1.16 kB
import React from "react"; import { ImageSourcePropType } from "react-native"; /** * HeaderInterface defines the props for the Header component. */ interface HeaderInterface { /** The header title text. */ title: string; /** Custom style for the title text. */ titleStyle: any; /** Tint color for the close icon. */ closeIconTint: string; /** Tint color for the join/create icon. */ createIconTint: string; /** Image source for the join icon. */ joinIcon: ImageSourcePropType; /** Image source for the close icon. */ closeIcon: ImageSourcePropType; /** Callback function executed when the cancel action is triggered. */ onCancel: () => void; /** Callback function executed when the submit action is triggered. */ onSubmit: () => void; } /** * Header component displays a header with a left-aligned close icon, * a centered title, and a right-aligned submit icon. * * @param {HeaderInterface} props - The props for the Header component. * * @returns {JSX.Element} The rendered Header component. */ declare const Header: (props: HeaderInterface) => React.JSX.Element; export default Header;