make sure TabBar re-rerenders when pinned feeds changes
parent
3501fda015
commit
1378ab46e9
|
@ -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}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue