aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/NavigationIcon.tsx
diff options
context:
space:
mode:
authorMichael <michael.foiani@gmail.com>2021-07-02 16:14:40 -0400
committerMichael <michael.foiani@gmail.com>2021-07-02 16:14:40 -0400
commitccc015351e686af23c00e8311060fb8a3477514a (patch)
tree3597708ec0ae1d37282c49ce3073ef3b3d6a5ae2 /src/components/common/NavigationIcon.tsx
parentc76a84a8a82dd00b826231a734c96af7e994d074 (diff)
parentd2347eef0e22c7d47f090e6ce0a8a2c50506c894 (diff)
Merge branch 'tma931-remove-search-on-bottom-navbar' into video-processing-test
Needed merge to access camera screen.
Diffstat (limited to 'src/components/common/NavigationIcon.tsx')
-rw-r--r--src/components/common/NavigationIcon.tsx16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/components/common/NavigationIcon.tsx b/src/components/common/NavigationIcon.tsx
index 5128f3da..debb36b3 100644
--- a/src/components/common/NavigationIcon.tsx
+++ b/src/components/common/NavigationIcon.tsx
@@ -18,6 +18,7 @@ interface NavigationIconProps extends TouchableOpacityProps {
| 'Chat';
disabled?: boolean;
newIcon?: boolean;
+ isBigger?: boolean;
}
const NavigationIcon = (props: NavigationIconProps) => {
@@ -35,7 +36,7 @@ const NavigationIcon = (props: NavigationIconProps) => {
break;
case 'Upload':
imgSrc = props.disabled
- ? require('../../assets/navigationIcons/upload.png')
+ ? require('../../assets/navigationIcons/new-upload.png')
: require('../../assets/navigationIcons/upload-clicked.png');
break;
case 'Notifications':
@@ -68,7 +69,10 @@ const NavigationIcon = (props: NavigationIconProps) => {
return (
<View style={styles.container}>
<TouchableOpacity {...props}>
- <Image source={imgSrc} style={styles.icon} />
+ <Image
+ source={imgSrc}
+ style={props.isBigger ? styles.biggerIcon : styles.icon}
+ />
</TouchableOpacity>
</View>
);
@@ -87,8 +91,12 @@ const styles = StyleSheet.create({
shadowOpacity: 0.4,
},
icon: {
- height: 30,
- width: 30,
+ height: 28,
+ width: 28,
+ },
+ biggerIcon: {
+ height: 44,
+ width: 44,
},
});