Skip to content

Commit b76367d

Browse files
authored
2.4.1 #193
2 parents 211262c + 7ebc09c commit b76367d

File tree

2 files changed

+12
-28
lines changed

2 files changed

+12
-28
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-tableview",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"description": "Native iOS TableView wrapper for React Native",
55
"main": "src/index.js",
66
"types": "src/index.d.ts",

src/index.d.ts

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,9 @@
44
// TypeScript Version: 2.6
55

66
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'
2710

2811
type 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

298286
declare 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

323307
declare namespace TableView {

0 commit comments

Comments
 (0)