UNPKG

@uiw/react-native

Version:
35 lines (34 loc) 927 B
import React from 'react'; import { ViewStyle, // 动画 Animated } from 'react-native'; import { icoType } from '../Rating'; import { SpeedDialItemProps } from './SpeedDialItem'; export interface PanXY extends Animated.Value { _value: number; } export interface SpeedDialProps { /** 显示的图标 [默认显示, 展开显示] */ icon?: icoType; /** 盒子样式 */ style?: ViewStyle; /** 初始距离下边位置 */ bottom?: number; /** 初始距离右边位置 */ right?: number; /** 展开显示的标记 */ children?: Array<SpeedDialItemProps>; /** 是否支持拖拽 */ isDrag?: boolean; /** 动画时间 */ transitionDuration?: number; /** * 打开时触发 */ onOpen?: Function; /** * 关闭时触发 */ onClose?: Function; } declare function SpeedDial(props: SpeedDialProps): React.JSX.Element; export default SpeedDial;