make sure TabBar re-rerenders when pinned feeds changes

zio/stable
Ansh Nanda 2023-05-16 23:40:51 -07:00
parent 3501fda015
commit 1378ab46e9
2 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ const FeedsTabBarDesktop = observer(
<Animated.View style={[pal.view, styles.tabBar, transform]}>
<TabBar
{...props}
key={items.join(',')}
items={items}
indicatorPosition="bottom"
indicatorColor={pal.colors.link}

View File

@ -53,7 +53,7 @@ export const FeedsTabBar = observer(
<UserAvatar avatar={store.me.avatar} size={30} />
</TouchableOpacity>
<TabBar
key={store.me.savedFeeds.listOfPinnedFeedNames.join(',')}
key={items.join(',')}
{...props}
items={items}
indicatorPosition="bottom"