mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
Fix RenderTabProperties ts lint error at react-native-scrollable-tab-view 0.10.0
This commit is contained in:
@@ -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>> {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user