UNPKG

6.32 kBTypeScriptView Raw
1import React from 'react';
2import { StyleProp, ViewStyle } from 'react-native';
3import { RneFunctionComponent } from '../helpers';
4export declare type CardProps = {
5 containerStyle?: StyleProp<ViewStyle>;
6 wrapperStyle?: StyleProp<ViewStyle>;
7};
8interface Card extends RneFunctionComponent<CardProps> {
9}
10declare const Card: Card;
11export { Card };
12declare const ThemedCard: (React.FunctionComponent<Omit<CardProps & Partial<import("../config").ThemeProps<CardProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<CardProps & Partial<import("../config").ThemeProps<CardProps>>>) & {
13 Divider: React.FunctionComponent<Omit<import("react-native").ViewProps & {
14 color?: string;
15 inset?: boolean;
16 insetType?: "left" | "right" | "middle";
17 style?: StyleProp<ViewStyle>;
18 subHeader?: string;
19 subHeaderStyle?: StyleProp<import("react-native").TextStyle>;
20 orientation?: "horizontal" | "vertical";
21 width?: number;
22 } & Partial<import("../config").ThemeProps<import("..").DividerProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<import("react-native").ViewProps & {
23 color?: string;
24 inset?: boolean;
25 insetType?: "left" | "right" | "middle";
26 style?: StyleProp<ViewStyle>;
27 subHeader?: string;
28 subHeaderStyle?: StyleProp<import("react-native").TextStyle>;
29 orientation?: "horizontal" | "vertical";
30 width?: number;
31 } & Partial<import("../config").ThemeProps<import("..").DividerProps>>>;
32 Image: React.FunctionComponent<Omit<import("react-native").ImageProps & {
33 Component?: typeof React.Component;
34 onPress?(): void;
35 onLongPress?(): void;
36 ImageComponent?: React.ComponentType<any>;
37 PlaceholderContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
38 containerStyle?: StyleProp<ViewStyle>;
39 childrenContainerStyle?: StyleProp<ViewStyle>;
40 placeholderStyle?: StyleProp<ViewStyle>;
41 transition?: boolean;
42 transitionDuration?: number;
43 } & Partial<import("../config").ThemeProps<import("..").ImageProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<import("react-native").ImageProps & {
44 Component?: typeof React.Component;
45 onPress?(): void;
46 onLongPress?(): void;
47 ImageComponent?: React.ComponentType<any>;
48 PlaceholderContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
49 containerStyle?: StyleProp<ViewStyle>;
50 childrenContainerStyle?: StyleProp<ViewStyle>;
51 placeholderStyle?: StyleProp<ViewStyle>;
52 transition?: boolean;
53 transitionDuration?: number;
54 } & Partial<import("../config").ThemeProps<import("..").ImageProps>>>;
55 Title: React.FunctionComponent<Omit<import("react-native").TextProps & {
56 style?: StyleProp<import("react-native").TextStyle>;
57 h1?: boolean;
58 h2?: boolean;
59 h3?: boolean;
60 h4?: boolean;
61 h1Style?: StyleProp<import("react-native").TextStyle>;
62 h2Style?: StyleProp<import("react-native").TextStyle>;
63 h3Style?: StyleProp<import("react-native").TextStyle>;
64 h4Style?: StyleProp<import("react-native").TextStyle>;
65 } & Partial<import("../config").ThemeProps<import("..").TextProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<import("react-native").TextProps & {
66 style?: StyleProp<import("react-native").TextStyle>;
67 h1?: boolean;
68 h2?: boolean;
69 h3?: boolean;
70 h4?: boolean;
71 h1Style?: StyleProp<import("react-native").TextStyle>;
72 h2Style?: StyleProp<import("react-native").TextStyle>;
73 h3Style?: StyleProp<import("react-native").TextStyle>;
74 h4Style?: StyleProp<import("react-native").TextStyle>;
75 } & Partial<import("../config").ThemeProps<import("..").TextProps>>>;
76 FeaturedTitle: React.FunctionComponent<Omit<import("react-native").TextProps & {
77 style?: StyleProp<import("react-native").TextStyle>;
78 h1?: boolean;
79 h2?: boolean;
80 h3?: boolean;
81 h4?: boolean;
82 h1Style?: StyleProp<import("react-native").TextStyle>;
83 h2Style?: StyleProp<import("react-native").TextStyle>;
84 h3Style?: StyleProp<import("react-native").TextStyle>;
85 h4Style?: StyleProp<import("react-native").TextStyle>;
86 } & Partial<import("../config").ThemeProps<import("..").TextProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<import("react-native").TextProps & {
87 style?: StyleProp<import("react-native").TextStyle>;
88 h1?: boolean;
89 h2?: boolean;
90 h3?: boolean;
91 h4?: boolean;
92 h1Style?: StyleProp<import("react-native").TextStyle>;
93 h2Style?: StyleProp<import("react-native").TextStyle>;
94 h3Style?: StyleProp<import("react-native").TextStyle>;
95 h4Style?: StyleProp<import("react-native").TextStyle>;
96 } & Partial<import("../config").ThemeProps<import("..").TextProps>>>;
97 FeaturedSubtitle: React.FunctionComponent<Omit<import("react-native").TextProps & {
98 style?: StyleProp<import("react-native").TextStyle>;
99 h1?: boolean;
100 h2?: boolean;
101 h3?: boolean;
102 h4?: boolean;
103 h1Style?: StyleProp<import("react-native").TextStyle>;
104 h2Style?: StyleProp<import("react-native").TextStyle>;
105 h3Style?: StyleProp<import("react-native").TextStyle>;
106 h4Style?: StyleProp<import("react-native").TextStyle>;
107 } & Partial<import("../config").ThemeProps<import("..").TextProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<import("react-native").TextProps & {
108 style?: StyleProp<import("react-native").TextStyle>;
109 h1?: boolean;
110 h2?: boolean;
111 h3?: boolean;
112 h4?: boolean;
113 h1Style?: StyleProp<import("react-native").TextStyle>;
114 h2Style?: StyleProp<import("react-native").TextStyle>;
115 h3Style?: StyleProp<import("react-native").TextStyle>;
116 h4Style?: StyleProp<import("react-native").TextStyle>;
117 } & Partial<import("../config").ThemeProps<import("..").TextProps>>>;
118};
119export default ThemedCard;