diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-08 19:01:14 -0800 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-08 19:01:14 -0800 |
commit | 0a002ac9f9dc51aa1c353a65bc96d33e3c5c5f0f (patch) | |
tree | 8a3b816cc89b312c742264a4c457521783a6d881 /src/components/common/NavigationIcon.tsx | |
parent | f5c1276366dda657ec03a743338cc29b96a805db (diff) |
Added SP screen to nav bar and main stack
Diffstat (limited to 'src/components/common/NavigationIcon.tsx')
-rw-r--r-- | src/components/common/NavigationIcon.tsx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/components/common/NavigationIcon.tsx b/src/components/common/NavigationIcon.tsx index 4bf35360..1a9934f2 100644 --- a/src/components/common/NavigationIcon.tsx +++ b/src/components/common/NavigationIcon.tsx @@ -8,7 +8,13 @@ import { } from 'react-native'; interface NavigationIconProps extends TouchableOpacityProps { - tab: 'Home' | 'Search' | 'Upload' | 'Notifications' | 'Profile'; + tab: + | 'Home' + | 'Search' + | 'Upload' + | 'Notifications' + | 'Profile' + | 'SuggestedPeople'; disabled?: boolean; newIcon?: boolean; } @@ -43,6 +49,11 @@ const NavigationIcon = (props: NavigationIconProps) => { ? require('../../assets/navigationIcons/profile.png') : require('../../assets/navigationIcons/profile-clicked.png'); break; + case 'SuggestedPeople': + imgSrc = props.disabled + ? require('../../assets/navigationIcons/suggested-people.png') + : require('../../assets/navigationIcons/suggested-people-clicked.png'); + break; default: imgSrc = null; } |