diff --git a/types/react-native-scrollable-tab-view/index.d.ts b/types/react-native-scrollable-tab-view/index.d.ts index d5c996511f..8e2d227fc0 100644 --- a/types/react-native-scrollable-tab-view/index.d.ts +++ b/types/react-native-scrollable-tab-view/index.d.ts @@ -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 // Egor Shulga +// 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 { /** @@ -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> { }