diff --git a/src/flashy/item/FlashyTabBarItem.tsx b/src/flashy/item/FlashyTabBarItem.tsx index 4c21f28..7d8496e 100644 --- a/src/flashy/item/FlashyTabBarItem.tsx +++ b/src/flashy/item/FlashyTabBarItem.tsx @@ -100,7 +100,7 @@ const FlashyTabBarItemComponent = (props: FlashyTabBarItemProps) => { return { indicatorVisibility: _indicatorVisible ?? DEFAULT_INDICATOR_VISIBILITY, indicatorColor: - _indicatorColor ?? labelStyleOverride.color ?? DEFAULT_INDICATOR_COLOR, + _indicatorColor ?? labelStyleOverride?.color ?? DEFAULT_INDICATOR_COLOR, indicatorSize: _indicatorSize ?? DEFAULT_INDICATOR_SIZE, }; }, [_indicatorVisible, _indicatorColor, _indicatorSize, labelStyleOverride]);