|
1 | 1 | // flow-typed signature: d916d5f731b562dc8f43492510e541f5 |
2 | 2 | // flow-typed version: <<STUB>>/react-native-tableview-simple_v0.13.0/flow_v0.35.0 |
3 | 3 |
|
| 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 | + |
4 | 49 | /** |
5 | 50 | * This is an autogenerated libdef stub for: |
6 | 51 | * |
|
14 | 59 | */ |
15 | 60 |
|
16 | 61 | 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>>; |
18 | 65 | } |
0 commit comments