UNPKG

@td-design/react-native

Version:

react-native UI组件库

25 lines 840 B
import { ReactNode } from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import { Theme } from '../theme'; export interface NoticeBarProps { /** 左侧自定义图标 */ icon?: ReactNode; /** 通知栏内容 */ text: string; /** 文字颜色 */ textColor?: keyof Theme['colors']; /** 通知栏模式。close表示可关闭;link表示可点击;默认为空 */ mode?: 'close' | 'link' | ''; /** 点击事件 */ onPress?: () => void; /** 滚动时间 */ duration?: number; /** 是否使用动画 */ animated?: boolean; /** 自定义样式 */ style?: StyleProp<ViewStyle>; /** 按下时的不透明度 */ activeOpacity?: number; } export type AnimatedNoticeProps = Omit<NoticeBarProps, 'mode' | 'onPress' | 'onClose'>; //# sourceMappingURL=type.d.ts.map