UNPKG

@paraboly/react-native-card

Version:

Fully customizable Card View for React Native.

22 lines (21 loc) 785 B
import * as React from "react"; import { StyleProp, ViewStyle, TextStyle } from "react-native"; declare type CustomStyleProp = StyleProp<ViewStyle> | Array<StyleProp<ViewStyle>>; declare type CustomTextStyleProp = StyleProp<TextStyle> | Array<StyleProp<TextStyle>>; interface ICardProps { style?: CustomStyleProp; onPress?: () => void; iconDisable?: boolean; borderRadius?: number; topRightText?: string; backgroundColor?: string; bottomRightText?: string; containerHeight?: number; topRightComponent?: JSX.Element; bottomRightComponent?: JSX.Element; shadowStyle?: CustomStyleProp; topRightTextStyle?: CustomTextStyleProp; bottomRightTextStyle?: CustomTextStyleProp; } declare const Card: React.FC<ICardProps>; export default Card;