UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

28 lines (27 loc) 832 B
import React from "react"; import { CometChatTheme } from "../theme/type"; /** * Animated skeleton placeholder mimicking a *user list* in CometChat UI‑Kit. * * The component respects the defaults provided by `theme.userStyles.skeletonStyle`, * but every visual property can be **overridden per instance** using the * `style` prop. * * @example * ```tsx * <Skeleton * style={{ * linearGradientColors: ["#4c669f", "#3b5998"], * shimmerOpacity: 0.4, * }} * /> * ``` */ export interface SkeletonProps { /** Partial style overrides (theme fallback for omitted keys). */ style?: Partial<SkeletonStyle>; } /** Alias for the skeleton style slice inside the theme. */ type SkeletonStyle = CometChatTheme["userStyles"]["skeletonStyle"]; export declare const Skeleton: React.FC<SkeletonProps>; export {};