1 | import * as React from 'react';
|
2 | import { StyleProp, ViewStyle } from 'react-native';
|
3 | import type { Layout, NavigationState, Route, SceneRendererProps, PagerProps } from './types';
|
4 | export declare type Props<T extends Route> = PagerProps & {
|
5 | onIndexChange: (index: number) => void;
|
6 | navigationState: NavigationState<T>;
|
7 | renderScene: (props: SceneRendererProps & {
|
8 | route: T;
|
9 | }) => React.ReactNode;
|
10 | renderLazyPlaceholder?: (props: {
|
11 | route: T;
|
12 | }) => React.ReactNode;
|
13 | renderTabBar?: (props: SceneRendererProps & {
|
14 | navigationState: NavigationState<T>;
|
15 | }) => React.ReactNode;
|
16 | tabBarPosition?: 'top' | 'bottom';
|
17 | initialLayout?: Partial<Layout>;
|
18 | lazy?: ((props: {
|
19 | route: T;
|
20 | }) => boolean) | boolean;
|
21 | lazyPreloadDistance?: number;
|
22 | sceneContainerStyle?: StyleProp<ViewStyle>;
|
23 | style?: StyleProp<ViewStyle>;
|
24 | };
|
25 | export default function TabView<T extends Route>({ onIndexChange, navigationState, renderScene, initialLayout, keyboardDismissMode, lazy, lazyPreloadDistance, onSwipeStart, onSwipeEnd, renderLazyPlaceholder, renderTabBar, sceneContainerStyle, style, swipeEnabled, tabBarPosition, }: Props<T>): JSX.Element;
|