Skip to content

Commit 9eefeae

Browse files
chore(navigation): made active tab for tabs as non required prop
1 parent 09e8ac6 commit 9eefeae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/navigation/tabs/primary-tabs/PrimaryTabs.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import {type BadgeSize} from '../../../badge/Badge.component';
1919

2020
export interface PrimaryTabsProps<T, Y> extends ViewProps {
2121
tabs: Tab<T, Y>[];
22-
activeTab: T;
2322

23+
activeTab?: T;
2424
animConfig?: WithSpringConfig;
2525
scrollAnim?: SharedValue<number>;
2626

@@ -39,8 +39,8 @@ const BASE_INDICATOR_WIDTH = 33;
3939

4040
export const PrimaryTabs = <T extends string, Y extends IconProps>({
4141
tabs,
42-
activeTab,
4342

43+
activeTab,
4444
badgeSize,
4545
scrollAnim,
4646
animConfig = {} as WithSpringConfig,

src/navigation/tabs/secondary-tabs/SecondaryTabs.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import {Tab as TabComponent, TabType} from '../ui/tab/Tab.component';
1919

2020
export interface SecondaryTabsProps<T, Y> extends ViewProps {
2121
tabs: Tab<T, Y>[];
22-
activeTab: T;
2322

23+
activeTab?: T;
2424
badgeSize?: BadgeSize;
2525
animConfig?: WithSpringConfig;
2626
scrollAnim?: SharedValue<number>;

0 commit comments

Comments
 (0)