UNPKG

reactnativeepictrailsds

Version:

A flexible and customizable design system for React Native, providing pre-built UI components, typography, and themes to enhance mobile app development.

36 lines (29 loc) 763 B
// Improved type for image content to handle both remote and local images export type ImageContent = { type: 'image'; imageUri: string; isLocal?: boolean; }; export type VideoContent = { type: 'video'; uri: string; }; export type TextContent = { type: 'text'; text: string; backgroundColor?: string; }; export type ContentItem = VideoContent | ImageContent | TextContent; export interface SocialMediaContainerProps { contentItems: ContentItem[]; duration?: number; onActiveIndexChange?: (index: number) => void; index?: number; } export interface SocialMediaStackProps { children: React.ReactNode; } export interface StoryProgressBarsProps { totalStories: number; activeStoryIndex: number; }