@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
21 lines (20 loc) • 882 B
TypeScript
/**
* Skeleton.tsx
*
* A lightweight, theme-aware shimmer “skeleton” placeholder for
* CometChat conversation lists.
* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
* • 20 rows (top + bottom layers) drawn with react-native-svg.
* • Two Animated views slide across on a loop to create
* the shimmer illusion.
* • Colours, speed, opacity and gradient come from the active
* CometChatTheme but can be overridden per-instance via `style`.
*/
import React from "react";
import { CometChatTheme } from "../theme/type";
type SkeletonStyle = CometChatTheme["conversationStyles"]["skeletonStyle"];
interface SkeletonProps {
style?: SkeletonStyle;
}
export declare const Skeleton: React.FC<SkeletonProps>;
export {};