@uiw/react-native
Version:
UIW for React Native
23 lines (22 loc) • 976 B
TypeScript
import React from 'react';
import { StyleProp, ViewStyle, TouchableOpacityProps, ViewProps } from 'react-native';
export interface CardProps extends ViewProps {
containerStyle?: StyleProp<ViewStyle>;
wrapperStyle?: StyleProp<ViewStyle>;
borderRadius?: number;
selected?: boolean;
children?: React.ReactNode;
onPress?: TouchableOpacityProps['onPress'];
onLongPress?: TouchableOpacityProps['onLongPress'];
selectedStyle?: {
icon?: React.ReactNode;
style?: ViewStyle;
iconStyle?: ViewStyle;
};
}
declare const Card: {
({ children, containerStyle, wrapperStyle, borderRadius, selected, onPress, onLongPress, selectedStyle, ...attributes }: CardProps): JSX.Element;
Title: ({ title, titleStyle, children }: import("./Card.Title").CardTitleProps) => JSX.Element;
Actions: ({ actions, actionsContainerStyle, children, driver }: import("./Card.Actions").CardActionsProps) => JSX.Element;
};
export default Card;