Skip to content

Commit eaff20a

Browse files
committed
add more limits to the tableview-simple typedef
1 parent b9324f9 commit eaff20a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

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

4+
import {Image} from 'react-native'
5+
46
type Style = Object | number | Array<Style>;
57

68
type TableviewProps = {||};
@@ -21,29 +23,29 @@ type SectionProps = {|
2123
|};
2224

2325
type CellProps = {|
24-
accessory?: ('DisclosureIndicator' | 'Detail' | 'DetailDisclosure' | 'Checkmark'),
26+
accessory?: 'DisclosureIndicator' | 'Detail' | 'DetailDisclosure' | 'Checkmark',
2527
accessoryColor?: string,
2628
allowFontScaling?: boolean,
2729
backgroundColor?: string,
28-
cellStyle?: ('Basic' | 'RightDetail' | 'LeftDetail' | 'Subtitle'),
30+
cellStyle?: 'Basic' | 'RightDetail' | 'LeftDetail' | 'Subtitle',
2931
cellAccessoryView?: React$Element<*>,
3032
cellContentView?: React$Element<*>,
3133
cellImageView?: React$Element<*>,
3234
contentContainerStyle?: Style,
33-
detail?: any,
35+
detail?: string | number | React$Element<*>,
3436
detailTextStyle?: Style,
3537
disableImageResize?: boolean,
3638
highlightActiveOpacity?: number,
3739
highlightUnderlayColor?: string,
3840
isDisabled?: boolean,
39-
image?: false | ?Image,
41+
image?: Image,
4042
leftDetailColor?: string,
4143
rightDetailColor?: string,
42-
title?: any,
44+
title?: string | number | React$Element<*>,
4345
titleTextColor?: string,
4446
titleTextStyle?: Style,
4547
titleTextStyleDisabled?: Style,
46-
onPress?: (false | (e: any) => any),
48+
onPress?: (e: any) => any,
4749
|};
4850

4951
/**

0 commit comments

Comments
 (0)