4
4
// TypeScript Version: 2.6
5
5
6
6
import * 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'
27
10
28
11
type FontStyle = 'italic' | 'normal' | 'oblique'
29
12
@@ -212,6 +195,11 @@ interface ItemProps {
212
195
*/
213
196
selectionStyle ?: CellSelectionStyle
214
197
198
+ /**
199
+ * Allow transparent cell background
200
+ */
201
+ transparent ?: boolean
202
+
215
203
/**
216
204
* Callback fired on pressing an accessory
217
205
*/
@@ -291,8 +279,8 @@ interface TableViewProps {
291
279
onAccessoryPress ?( event : AccessoryCallBack ) : void
292
280
onWillDisplayCell ?( event : DisplayCallBack ) : void
293
281
onEndDisplayingCell ?( event : DisplayCallBack ) : void
294
- cellSeparatorInset : Insets
295
- cellLayoutMargins : Insets
282
+ cellSeparatorInset ? : Insets
283
+ cellLayoutMargins ? : Insets
296
284
}
297
285
298
286
declare class TableView extends React . Component < TableViewProps > {
@@ -313,11 +301,7 @@ declare class TableView extends React.Component<TableViewProps> {
313
301
* @param params.section index of the section @default 0
314
302
* @param params.animated scroll with animation @default true
315
303
*/
316
- scrollToIndex ( params : {
317
- index : number
318
- section ?: number
319
- animated ?: boolean
320
- } ) : void
304
+ scrollToIndex ( params : { index : number ; section ?: number ; animated ?: boolean } ) : void
321
305
}
322
306
323
307
declare namespace TableView {
0 commit comments