@uiw/react-native
Version:
UIW for React Native
27 lines (26 loc) • 881 B
TypeScript
import React from 'react';
import { StyleProp, TextStyle } from 'react-native';
import { SwipeoutButtonProperties, SwipeoutProperties } from 'react-native-swipeout';
export interface SwipeoutButtonProps extends SwipeoutButtonProperties {
style?: StyleProp<TextStyle> & {
backgroundColor: string;
};
}
export interface SwipeActionProps extends SwipeoutProperties {
left?: SwipeoutButtonProps[];
right?: SwipeoutButtonProps[];
}
declare class SwipeAction extends React.Component<SwipeActionProps> {
static defaultProps: SwipeActionProps;
renderCustomButton(button: SwipeoutButtonProps): {
text: {};
onPress: (() => void) | undefined;
type: string;
component: JSX.Element;
backgroundColor: string;
color: string;
disabled: boolean;
};
render(): JSX.Element;
}
export default SwipeAction;