react-native-tab-view-next
Version:
Tab view component for React Native
16 lines (15 loc) • 829 B
TypeScript
import * as React from 'react';
import { Animated } from 'react-native';
import type { NavigationState, Route, Layout, EventEmitterProps, PagerProps } from './types';
declare type Props<T extends Route> = PagerProps & {
layout: Layout;
onIndexChange: (index: number) => void;
navigationState: NavigationState<T>;
children: (props: EventEmitterProps & {
position: Animated.AnimatedInterpolation;
render: (children: React.ReactNode) => React.ReactNode;
jumpTo: (key: string) => void;
}) => React.ReactElement;
};
export default function PanResponderAdapter<T extends Route>({ layout, keyboardDismissMode, swipeEnabled, navigationState, onIndexChange, onSwipeStart, onSwipeEnd, children, style, }: Props<T>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
export {};