import React from 'react'; import { StyleProp, TextStyle, ViewStyle } from 'react-native'; import { NoticeBarStyle } from './style'; export interface NoticeBarProps { action?: React.ReactElement; children?: React.ReactNode; icon?: React.ReactElement; marqueeProps?: Omit; mode?: 'closable' | 'link'; onClose?: () => void; onPress?: () => void; style?: StyleProp; styles?: Partial; } export interface MarqueeProps { autoFill?: boolean; children: React.ReactNode; direction?: 'left' | 'right' | 'up' | 'down'; fps?: number; leading?: number; loop?: boolean | number; maxWidth?: number; onFinish?: () => void; onCycleComplete?: () => void; play?: boolean; spacing?: number; style?: StyleProp; wrapStyle?: StyleProp; trailing?: number; } export interface MarqueeActions { play: () => void; pause: () => void; stop: () => void; }