mirror of
https://github.com/zhigang1992/react-native-vector-icons.git
synced 2026-06-15 10:28:30 +08:00
Fixed bug causing color in styles not to be respected.
This commit is contained in:
@@ -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]}>
|
||||
|
||||
Reference in New Issue
Block a user