Skip to content

Commit ff12776

Browse files
committed
add typedef for react-native-tableview-simple
1 parent 4b02f37 commit ff12776

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

flow-typed/npm/react-native-tableview-simple_vx.x.x.js

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,51 @@
11
// flow-typed signature: d916d5f731b562dc8f43492510e541f5
22
// flow-typed version: <<STUB>>/react-native-tableview-simple_v0.13.0/flow_v0.35.0
33

4+
type Style = Object | number | Array<Style>;
5+
6+
type TableviewProps = {||};
7+
8+
type SectionProps = {|
9+
allowFontScaling?: boolean,
10+
footerComponent?: React$Element<*>,
11+
headerComponent?: React$Element<*>,
12+
footer?: string,
13+
footerTextColor?: string,
14+
header?: string,
15+
headerTextColor?: string,
16+
hideSeparator?: boolean,
17+
sectionTintColor?: string,
18+
separatorInsetLeft?: number,
19+
separatorInsetRight?: number,
20+
separatorTintColor?: string,
21+
|};
22+
23+
type CellProps = {|
24+
accessory?: ('DisclosureIndicator' | 'Detail' | 'DetailDisclosure' | 'Checkmark'),
25+
accessoryColor?: string,
26+
allowFontScaling?: boolean,
27+
backgroundColor?: string,
28+
cellStyle?: ('Basic' | 'RightDetail' | 'LeftDetail' | 'Subtitle'),
29+
cellAccessoryView?: React$Element<*>,
30+
cellContentView?: React$Element<*>,
31+
cellImageView?: React$Element<*>,
32+
contentContainerStyle?: Style,
33+
detail?: any,
34+
detailTextStyle?: Style,
35+
disableImageResize?: boolean,
36+
highlightActiveOpacity?: number,
37+
highlightUnderlayColor?: string,
38+
isDisabled?: boolean,
39+
image?: false | ?Image,
40+
leftDetailColor?: string,
41+
rightDetailColor?: string,
42+
title?: any,
43+
titleTextColor?: string,
44+
titleTextStyle?: Style,
45+
titleTextStyleDisabled?: Style,
46+
onPress?: (false | (e: any) => any),
47+
|};
48+
449
/**
550
* This is an autogenerated libdef stub for:
651
*
@@ -14,5 +59,7 @@
1459
*/
1560

1661
declare module 'react-native-tableview-simple' {
17-
declare module.exports: any;
62+
declare export var TableView: Class<React$Component<void, TableviewProps, any>>;
63+
declare export var Section: Class<React$Component<void, SectionProps, any>>;
64+
declare export var Cell: Class<React$Component<void, CellProps, any>>;
1865
}

0 commit comments

Comments
 (0)