import React, {} from 'react' import {Block, Box, Line, ScrollView} from '../Components' export interface TabPaneProps { tab: string | number index?: number currentIndex?: number } interface InnerTabPaneProps extends TabPaneProps { children?: React.ReactNode isContentScroll?: boolean contentHeight?: string onScrollToLower?: (event: any) => void onScrollToUpper?: (event: any) => void contentPadding?: string hideTab?: boolean, lowerThreshold?: string } const TabPane = ({ children, isContentScroll=false, contentHeight, onScrollToLower=() => {}, contentPadding, onScrollToUpper=() => {}, hideTab=false, lowerThreshold='50' }: InnerTabPaneProps) => { return ( { isContentScroll ? {!hideTab && } {children} : {!hideTab && } {children} } ) } export default TabPane