diff options
author | Ivan Chen <ivan@thetaggid.com> | 2020-11-21 19:20:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 19:20:11 -0500 |
commit | f620102190629e0b6f180d3ce056d850b1db5aaa (patch) | |
tree | a96a865b2f2d9c6dcd333b4390c01f48291ccad2 /src/components/common/NavigationIcon.tsx | |
parent | 3214fc765cbce3c6f9092546424249d08622afb1 (diff) |
[TMA-356] Updated icons (#118)
* updated icons
* added small icons
* fixed a bug
* now using the correct assets, fixed a bug
Diffstat (limited to 'src/components/common/NavigationIcon.tsx')
-rw-r--r-- | src/components/common/NavigationIcon.tsx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/components/common/NavigationIcon.tsx b/src/components/common/NavigationIcon.tsx index 8bf8b4a0..8fff18f4 100644 --- a/src/components/common/NavigationIcon.tsx +++ b/src/components/common/NavigationIcon.tsx @@ -17,8 +17,8 @@ const NavigationIcon = (props: NavigationIconProps) => { switch (props.tab) { case 'Home': imgSrc = props.disabled - ? require('../../assets/navigationIcons/home-new.png') - : require('../../assets/navigationIcons/home-new-clicked.png'); + ? require('../../assets/navigationIcons/home.png') + : require('../../assets/navigationIcons/home-clicked.png'); break; case 'Search': imgSrc = props.disabled @@ -44,16 +44,16 @@ const NavigationIcon = (props: NavigationIconProps) => { imgSrc = null; } return ( - <View style={styles.icon}> + <View style={styles.container}> <TouchableOpacity {...props}> - <Image source={imgSrc} /> + <Image source={imgSrc} style={styles.icon} /> </TouchableOpacity> </View> ); }; const styles = StyleSheet.create({ - icon: { + container: { flex: 1, justifyContent: 'center', shadowColor: '#000000', @@ -64,6 +64,10 @@ const styles = StyleSheet.create({ shadowRadius: 2, shadowOpacity: 0.4, }, + icon: { + height: 30, + width: 30, + }, }); export default NavigationIcon; |