Fixed bug causing color in styles not to be respected.

This commit is contained in:
Joel Arvidsson
2015-06-03 14:14:58 +02:00
parent 6e78740bbd
commit 7a69daeda3

View File

@@ -63,10 +63,12 @@ function createIconSet(glyphMap, fontFamily) {
);
var size = this.props.size || textStyle.fontSize || DEFAULT_ICON_SIZE;
var color = this.props.color || textStyle.color || DEFAULT_ICON_COLOR;
textStyle.fontSize = size;
textStyle.lineHeight = size;
textStyle.height = size;
textStyle.color = this.props.color || DEFAULT_ICON_COLOR;
textStyle.color = color;
return (
<View {...this.props} style={[containerStyle]}>