import { isNil } from '../../internal/utils/functions'; import Animated, { LinearTransition } from 'react-native-reanimated'; import { SemanticColor } from '../../foundation'; import React from 'react'; /** * Tabs 컴포넌트에 사용하는 활성화된 탭 하단 구분선 */ export function AnimatedActiveDivider(props: { x: number | undefined; width: number | undefined }) { if (isNil(props.x)) return null; // 첫번째 탭에 위치할 때 x 값이 0이므로 0인 경우는 렌더해야 함 if (isNil(props.width) || props.width === 0) return null; return ( ); }