UNPKG

@uiw/react-native

Version:
23 lines (22 loc) 976 B
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;