Force font family/weight/style to avoid issues resolving font on android #283

This commit is contained in:
Joel Arvidsson
2016-10-27 01:47:02 +02:00
parent ee7fee6869
commit a15eacea16

View File

@@ -67,15 +67,17 @@ export default function createIconSet(glyphMap, fontFamily, fontFile) {
const styleDefaults = {
fontSize: size,
fontWeight: 'normal',
fontStyle: 'normal',
color,
};
props.style = [styleDefaults, style];
props.ref = this.handleRef;
const styleOverrides = {
fontFamily: fontReference,
fontWeight: 'normal',
fontStyle: 'normal',
};
styleDefaults.fontFamily = fontReference;
props.style = [styleDefaults, style, styleOverrides];
props.ref = this.handleRef;
return (<Text {...props}>{glyph}{this.props.children}</Text>);
}