UNPKG

@paraboly/react-native-card

Version:

Fully customizable Card View for React Native.

16 lines (15 loc) 600 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 ISimpleCardProps { text: string; backgroundColor?: string; style?: CustomStyleProp; shadowStyle?: CustomStyleProp; innerContainerStyle?: CustomStyleProp; cardTextStyle?: CustomTextStyleProp; onPress?: () => void; } declare const SimpleCard: React.FC<ISimpleCardProps>; export default SimpleCard;