diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-07 14:42:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 14:42:15 -0400 |
commit | 766c55c52071ecabc40aa527d6196c39eff01b5c (patch) | |
tree | 22921694ff36e40c1514f110a838febd47b9c140 /src/components/common/NavigationIcon.tsx | |
parent | f88193340ef5110080732d37c6a6ab69013f7b36 (diff) | |
parent | d2347eef0e22c7d47f090e6ce0a8a2c50506c894 (diff) |
Merge pull request #485 from sotech117/tma931-remove-search-on-bottom-navbar
[TMA-931] Remove Search on Bottom Navbar
Diffstat (limited to 'src/components/common/NavigationIcon.tsx')
-rw-r--r-- | src/components/common/NavigationIcon.tsx | 16 |
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, }, }); |