Skip to content

Commit

Permalink
2.4.1 #193
Browse files Browse the repository at this point in the history
  • Loading branch information
iRoachie committed Nov 12, 2018
2 parents 211262c + 7ebc09c commit b76367d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 28 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-native-tableview",
"version": "2.4.0",
"version": "2.4.1",
"description": "Native iOS TableView wrapper for React Native",
"main": "src/index.js",
"types": "src/index.d.ts",
Expand Down
38 changes: 11 additions & 27 deletions src/index.d.ts
Expand Up @@ -4,26 +4,9 @@
// TypeScript Version: 2.6

import * as React from 'react'
import {
ViewStyle,
Insets,
PointPropType,
NativeSyntheticEvent,
NativeScrollEvent,
} from 'react-native'

type FontWeight =
| 100
| 200
| 300
| 400
| 500
| 600
| 700
| 800
| 900
| 'bold'
| 'normal'
import { ViewStyle, Insets, PointPropType, NativeSyntheticEvent, NativeScrollEvent } from 'react-native'

type FontWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 'bold' | 'normal'

type FontStyle = 'italic' | 'normal' | 'oblique'

Expand Down Expand Up @@ -212,6 +195,11 @@ interface ItemProps {
*/
selectionStyle?: CellSelectionStyle

/**
* Allow transparent cell background
*/
transparent?: boolean

/**
* Callback fired on pressing an accessory
*/
Expand Down Expand Up @@ -291,8 +279,8 @@ interface TableViewProps {
onAccessoryPress?(event: AccessoryCallBack): void
onWillDisplayCell?(event: DisplayCallBack): void
onEndDisplayingCell?(event: DisplayCallBack): void
cellSeparatorInset: Insets
cellLayoutMargins: Insets
cellSeparatorInset?: Insets
cellLayoutMargins?: Insets
}

declare class TableView extends React.Component<TableViewProps> {
Expand All @@ -313,11 +301,7 @@ declare class TableView extends React.Component<TableViewProps> {
* @param params.section index of the section @default 0
* @param params.animated scroll with animation @default true
*/
scrollToIndex(params: {
index: number
section?: number
animated?: boolean
}): void
scrollToIndex(params: { index: number; section?: number; animated?: boolean }): void
}

declare namespace TableView {
Expand Down

0 comments on commit b76367d

Please sign in to comment.