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]}> <Animated.View style={[pal.view, styles.tabBar, transform]}>
<TabBar <TabBar
{...props} {...props}
key={items.join(',')}
items={items} items={items}
indicatorPosition="bottom" indicatorPosition="bottom"
indicatorColor={pal.colors.link} indicatorColor={pal.colors.link}

View File

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