Skip to content

Commit

Permalink
Remove Font.style usage (not needed anyways)
Browse files Browse the repository at this point in the history
fbshipit-source-id: 0507338
  • Loading branch information
brentvatne authored and expbot committed Nov 1, 2017
1 parent 797a814 commit 2f496ed
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions createIconSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import createIconSet from './vendor/react-native-vector-icons/lib/create-icon-se
import createIconButtonComponent from './vendor/react-native-vector-icons/lib/icon-button';

export default function(glyphMap, fontName, expoAssetId) {
const expoFontName = Font.style(fontName, {
ignoreWarning: true,
}).fontFamily;
const font = { [fontName]: expoAssetId };
const RNVIconComponent = createIconSet(glyphMap, expoFontName);
const RNVIconComponent = createIconSet(glyphMap, fontName);

class Icon extends React.Component {
static propTypes = RNVIconComponent.propTypes;
Expand Down

0 comments on commit 2f496ed

Please sign in to comment.