UNPKG

react-native-tab-view

Version:
27 lines 1.31 kB
import * as React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import type { Layout, NavigationState, PagerProps, Route, SceneRendererProps } from './types'; export type Props<T extends Route> = PagerProps & { onIndexChange: (index: number) => void; navigationState: NavigationState<T>; renderScene: (props: SceneRendererProps & { route: T; }) => React.ReactNode; renderLazyPlaceholder?: (props: { route: T; }) => React.ReactNode; renderTabBar?: (props: SceneRendererProps & { navigationState: NavigationState<T>; }) => React.ReactNode; tabBarPosition?: 'top' | 'bottom'; initialLayout?: Partial<Layout>; lazy?: ((props: { route: T; }) => boolean) | boolean; lazyPreloadDistance?: number; sceneContainerStyle?: StyleProp<ViewStyle>; pagerStyle?: StyleProp<ViewStyle>; style?: StyleProp<ViewStyle>; }; export declare function TabView<T extends Route>({ onIndexChange, navigationState, renderScene, initialLayout, keyboardDismissMode, lazy, lazyPreloadDistance, onSwipeStart, onSwipeEnd, renderLazyPlaceholder, renderTabBar, sceneContainerStyle, pagerStyle, style, swipeEnabled, tabBarPosition, animationEnabled, overScrollMode, }: Props<T>): JSX.Element; //# sourceMappingURL=TabView.d.ts.map