import React from 'react'; import { Text, TouchableOpacity, View } from 'react-native'; import { Route, TabBar, TabView } from 'react-native-tab-view'; import { styles } from './styles'; import { Colors } from 'src/theme'; import MarkToUpIcon from '../../../assets/icons/mark-to-up.svg'; export const HorizontalTabView = ({ index, setIndex, routes, renderScene, withMark, onDoubleClick, lazy = false }: { index: number; setIndex: React.Dispatch>; routes: Route[]; renderScene: (props: any) => React.ReactNode; withMark?: boolean; onDoubleClick?: () => void; lazy?: boolean; }) => { const renderTabBar = (props: any) => ( ( {route.title} {withMark ? ( ) : null} )} scrollEnabled={true} indicatorStyle={styles.indicator} style={styles.tabBar} activeColor={Colors.ORANGE} inactiveColor={Colors.DARK_BLUE} tabStyle={styles.tabStyle} pressColor={'transparent'} /> ); return ( ); };