44// TypeScript Version: 2.6
55
66import * as React from 'react'
7- import {
8- ViewStyle ,
9- Insets ,
10- PointPropType ,
11- NativeSyntheticEvent ,
12- NativeScrollEvent ,
13- } from 'react-native'
14-
15- type FontWeight =
16- | 100
17- | 200
18- | 300
19- | 400
20- | 500
21- | 600
22- | 700
23- | 800
24- | 900
25- | 'bold'
26- | 'normal'
7+ import { ViewStyle , Insets , PointPropType , NativeSyntheticEvent , NativeScrollEvent } from 'react-native'
8+
9+ type FontWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 'bold' | 'normal'
2710
2811type FontStyle = 'italic' | 'normal' | 'oblique'
2912
@@ -212,6 +195,11 @@ interface ItemProps {
212195 */
213196 selectionStyle ?: CellSelectionStyle
214197
198+ /**
199+ * Allow transparent cell background
200+ */
201+ transparent ?: boolean
202+
215203 /**
216204 * Callback fired on pressing an accessory
217205 */
@@ -291,8 +279,8 @@ interface TableViewProps {
291279 onAccessoryPress ?( event : AccessoryCallBack ) : void
292280 onWillDisplayCell ?( event : DisplayCallBack ) : void
293281 onEndDisplayingCell ?( event : DisplayCallBack ) : void
294- cellSeparatorInset : Insets
295- cellLayoutMargins : Insets
282+ cellSeparatorInset ? : Insets
283+ cellLayoutMargins ? : Insets
296284}
297285
298286declare class TableView extends React . Component < TableViewProps > {
@@ -313,11 +301,7 @@ declare class TableView extends React.Component<TableViewProps> {
313301 * @param params.section index of the section @default 0
314302 * @param params.animated scroll with animation @default true
315303 */
316- scrollToIndex ( params : {
317- index : number
318- section ?: number
319- animated ?: boolean
320- } ) : void
304+ scrollToIndex ( params : { index : number ; section ?: number ; animated ?: boolean } ) : void
321305}
322306
323307declare namespace TableView {
0 commit comments