Skip to content

Commit

Permalink
Merge pull request #48 from leandrosimoes/master
Browse files Browse the repository at this point in the history
Fix font family for IOS platform
  • Loading branch information
jgcmarins committed Nov 20, 2018
2 parents 4e25ffc + ea44a10 commit e828bf5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Icon.js
@@ -1,11 +1,11 @@
import React, { Component } from 'react';
import { Text, StyleSheet } from 'react-native';
import { Text, StyleSheet, Platform } from 'react-native';

import Icons from './FontAwesomeIcons';
const IconTypes = {
FAR: 'fa_regular_400',
FAS: 'fa_solid_900',
FAB: 'fa_brands_400'
FAR: Platform.OS === 'ios' ? 'FontAwesome5FreeRegular' : 'fa_regular_400',
FAS: Platform.OS === 'ios' ? 'FontAwesome5FreeSolid' : 'fa_solid_900',
FAB: Platform.OS === 'ios' ? 'FontAwesome5BrandsRegular' : 'fa_brands_400'
}

const parseIconFromClassName = (iconName) => {
Expand Down

0 comments on commit e828bf5

Please sign in to comment.