fix focused for your tags and wallet menu items

This commit is contained in:
Akinwale Ariwodola 2019-08-21 18:05:22 +01:00
parent 430fc1a661
commit 1e31d8d22b

View file

@ -49,7 +49,12 @@ class DrawerContent extends React.PureComponent {
</Text>
)}
{menuItems.map(item => {
const focused = activeItemKey === item.route;
const focused =
activeItemKey === item.route ||
(activeItemKey === Constants.FULL_ROUTE_NAME_DISCOVER &&
item.route === Constants.DRAWER_ROUTE_DISCOVER) ||
(activeItemKey === Constants.FULL_ROUTE_NAME_WALLET &&
item.route === Constants.DRAWER_ROUTE_WALLET);
return (
<TouchableOpacity
accessible