UNPKG

@ant-design/react-native

Version:

基于蚂蚁金服移动设计规范的 React Native 组件库

28 lines (27 loc) 884 B
import React from 'react'; import { StyleProp, TextStyle } from 'react-native'; import { RectButtonProps } from 'react-native-gesture-handler'; import { SwipeableProps } from 'react-native-gesture-handler/Swipeable'; import { SwipeActionStyle } from './style'; export interface SwipeoutButtonProps { actionButtonProps?: RectButtonProps; backgroundColor?: string; color?: string; disabled?: boolean; onPress?(): void | Promise<any>; style?: StyleProp<TextStyle>; text?: React.ReactNode; } export interface SwipeActionProps extends SwipeableProps { closeOnAction?: boolean; closeOnTouchOutside?: boolean; left?: SwipeoutButtonProps[]; right?: SwipeoutButtonProps[]; /** * @deprecated No longer needed * @version `5.2.1` */ buttonWidth?: number; children?: React.ReactNode; styles?: Partial<SwipeActionStyle>; }