diff options
author | Ivan Chen <ivan@thetaggid.com> | 2021-01-20 15:52:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 15:52:37 -0500 |
commit | 7b45e8d238f392183f3c1742f22495a2f9c6fb7f (patch) | |
tree | bab6621bf916e9efa0ce863cf49b649bd6ba6548 /src/components/common/NavigationIcon.tsx | |
parent | a64a0c53f108f8ea9c9ac0ba67c34ff82007271e (diff) | |
parent | 623bc69013c8fd173e49fb059eaba23c9219e0eb (diff) |
Merge pull request #192 from ashmgarv/tma515-new-no-icon
[TMA - 515] New notifications icon and reordering of bottom navigation stack
Diffstat (limited to 'src/components/common/NavigationIcon.tsx')
-rw-r--r-- | src/components/common/NavigationIcon.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/common/NavigationIcon.tsx b/src/components/common/NavigationIcon.tsx index 8fff18f4..4bf35360 100644 --- a/src/components/common/NavigationIcon.tsx +++ b/src/components/common/NavigationIcon.tsx @@ -10,6 +10,7 @@ import { interface NavigationIconProps extends TouchableOpacityProps { tab: 'Home' | 'Search' | 'Upload' | 'Notifications' | 'Profile'; disabled?: boolean; + newIcon?: boolean; } const NavigationIcon = (props: NavigationIconProps) => { @@ -32,7 +33,9 @@ const NavigationIcon = (props: NavigationIconProps) => { break; case 'Notifications': imgSrc = props.disabled - ? require('../../assets/navigationIcons/notifications.png') + ? props.newIcon + ? require('../../assets/navigationIcons/new-notifications.png') + : require('../../assets/navigationIcons/notifications.png') : require('../../assets/navigationIcons/notifications-clicked.png'); break; case 'Profile': |