diff --git a/Icon.js b/Icon.js index 5ab1ada..52664ea 100644 --- a/Icon.js +++ b/Icon.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import { Text, StyleSheet } from 'react-native'; +import { Platform, Text, StyleSheet } from 'react-native'; import Icons from './FontAwesomeIcons'; @@ -23,9 +23,10 @@ class Icon extends Component { } } +const fontFamily = Platform.OS === 'ios' ? 'FontAwesome' : 'fontawesome-webfont'; const styles = StyleSheet.create({ icon: { - fontFamily: 'FontAwesome', + fontFamily: fontFamily, backgroundColor: 'transparent', }, });