Skip to content

Commit f6b2c4e

Browse files
authored
TabController.TabBar - fix items not being updated (#1204)
1 parent 73f27d7 commit f6b2c4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/tabController/TabBar.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ const TabBar = (props: Props) => {
192192
const containerWidth: number = useMemo(() => {
193193
return propsContainerWidth || Constants.screenWidth;
194194
}, [propsContainerWidth]);
195+
195196
const items = useMemo(() => {
196197
return contextItems || propsItems;
197198
}, [contextItems, propsItems]);
@@ -239,6 +240,7 @@ const TabBar = (props: Props) => {
239240
);
240241
});
241242
}, [
243+
items,
242244
labelColor,
243245
selectedLabelColor,
244246
labelStyle,
@@ -275,6 +277,7 @@ const TabBar = (props: Props) => {
275277
});
276278
});
277279
}, [
280+
propsChildren,
278281
labelColor,
279282
selectedLabelColor,
280283
labelStyle,

0 commit comments

Comments
 (0)