Skip to content

Commit

Permalink
Fix: Improves icons visibility in night mode. (#1993)
Browse files Browse the repository at this point in the history
* Fixes #1989, Improves icons visibility in night mode.

* Fixes #1989, Passes text color via context to improve night mode visibility
  • Loading branch information
pulkonet authored and borisyankov committed Mar 4, 2018
1 parent 8a3e6ed commit f14bf2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/OptionButton.js
Expand Up @@ -28,6 +28,10 @@ type Props = {
};

export default class OptionButton extends PureComponent<Props> {
static contextTypes = {
styles: () => null,
};

props: Props;

render() {
Expand All @@ -37,7 +41,7 @@ export default class OptionButton extends PureComponent<Props> {
<Touchable onPress={onPress}>
<View style={styles.optionRow}>
<Label style={styles.optionTitle} text={label} />
<IconRight size={18} style={styles.rightIcon} />
<IconRight size={18} style={[this.context.styles.icon, styles.rightIcon]} />
</View>
</Touchable>
);
Expand Down

0 comments on commit f14bf2e

Please sign in to comment.