UNPKG

@td-design/react-native

Version:

react-native UI组件库

19 lines 781 B
import React, { ReactNode } from 'react'; import { StyleProp, ViewStyle } from 'react-native'; export interface ActionSheetItemProps { /** 操作项文字 */ text: string; /** 操作项点击事件 */ onPress: () => void; /** 操作项类型。danger表示警示性操作 */ type?: 'default' | 'danger'; render?: (text: string, type?: 'default' | 'danger') => ReactNode; } declare function ActionSheetItem({ text, type, onPress, activeOpacity, render, onCancel, itemStyle, }: ActionSheetItemProps & { onCancel: () => void; activeOpacity: number; itemStyle: StyleProp<ViewStyle>; }): JSX.Element; declare const _default: React.MemoExoticComponent<typeof ActionSheetItem>; export default _default; //# sourceMappingURL=ActionSheetItem.d.ts.map