Skip to content

Commit

Permalink
pass tintColor in style object (#7)
Browse files Browse the repository at this point in the history
* pass tintColor in style object

* fixes#5 pass tintColor in style object
  • Loading branch information
ShadyXV authored and syaau committed Jan 30, 2019
1 parent 2430745 commit 656f607
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 656f607

Please sign in to comment.