@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
32 lines (31 loc) • 861 B
TypeScript
import React from "react";
import { CometChatTheme } from "../theme/type";
/**
* React‑Native skeleton list with animated shimmer.
*
* @remarks
* The component respects the brand/theme defaults defined in
* `theme.groupStyles.skeletonStyle` but allows **per‑instance overrides** via the
* `style` prop.
*
* @example
* ```tsx
* <Skeleton
* style={{
* linearGradientColors: ["#eee", "#ddd"],
* backgroundColor: "#444",
* }}
* />
* ```
*/
export interface SkeletonProps {
/**
* Partial style overrides. Any omitted property falls back to the theme
* default.
*/
style?: Partial<SkeletonStyle>;
}
/** Convenience alias for the skeleton style slice in the theme object. */
type SkeletonStyle = CometChatTheme["groupStyles"]["skeletonStyle"];
export declare const Skeleton: React.FC<SkeletonProps>;
export {};