Fix RenderTabProperties ts lint error at react-native-scrollable-tab-view 0.10.0

This commit is contained in:
binjiechen
2019-04-03 15:03:59 +08:00
parent 0ac2719531
commit 4e8e7ed454

View File

@@ -1,12 +1,13 @@
// Type definitions for react-native-scrollable-tab-view 0.8
// Type definitions for react-native-scrollable-tab-view 0.10.0
// Project: https://github.com/brentvatne/react-native-scrollable-tab-view
// Definitions by: CaiHuan <https://github.com/CaiHuan>
// Egor Shulga <https://github.com/egorshulga>
// ydostyle <https://github.com/ydostyle>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
import { Animated, ScrollViewProps, ViewStyle, TextStyle, StyleProp } from 'react-native';
import { Animated, ScrollViewProps, ViewStyle, TextStyle, StyleProp, LayoutChangeEvent } from 'react-native';
export interface ScrollableTabViewProperties extends React.Props<ScrollableTabView> {
/**
@@ -139,7 +140,7 @@ export interface DefaultTabBarProps {
}
export type RenderTabProperties =
(name: string, pageIndex: number, isTabActive: boolean, goToPage: (pageNumber: number) => void) => JSX.Element;
(name: string, pageIndex: number, isTabActive: boolean, onPressHandler: (pageNumber: number) => void, onLayoutHandler: (event: LayoutChangeEvent) => void) => JSX.Element;
export class DefaultTabBar extends React.Component<TabBarProps<DefaultTabBarProps>> {
}