Skip to content

Commit

Permalink
fixes#5 pass tintColor in style object
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadyXV committed Jan 30, 2019
1 parent 002cae0 commit 8f64800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BottomNavigation/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Nav = ({ title, screen, icon }: Props) => (
const activeColor = activeScreen === screen ? tintColor : undefined;
return (
<TouchableOpacity style={styles.container} onPress={() => setActiveScreen(screen)}>
<Image source={icon} style={styles.icon} tintColor={activeColor} />
<Image source={icon} style={[styles.icon, { tintColor: activeColor }]} />
<Text allowFontScaling={false} style={[styles.title, { color: activeColor }]}>
{title}
</Text>
Expand Down

0 comments on commit 8f64800

Please sign in to comment.