import React, { Component } from 'react'; import { ScrollView, NativeSyntheticEvent, NativeScrollEvent } from 'react-native'; import TabBar, { TabItem, TabBarStyle } from '../TabBar'; declare type TabBarPositionType = 'top' | 'botton'; interface DefaultProps { tabBarPosition: TabBarPositionType; tabBarStyle?: TabBarStyle; onChangeTab?: Function; canSlide?: boolean; scrollWithoutAnination?: boolean; } export interface ScrollableTabViewProps extends DefaultProps { data: Array; } export default class ScrollableTabView extends Component { static defaultProps: DefaultProps; tabBarRef: React.RefObject; scrollTabRef: React.RefObject; onMomentumScrollEnd: ({ nativeEvent: { contentOffset: { x }, }, }: NativeSyntheticEvent) => void; onChangeTab: (item: Object, index: number, data: []) => void; render(): JSX.Element; } export {};