From 67cab6244cbbff3096243ea9becd1c6dd78ea6f3 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Tue, 23 Aug 2016 18:04:46 +0000 Subject: [PATCH] Fallback to a component rather than view when icon not ready fbshipit-source-id: 9689995 --- createIconSet.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/createIconSet.js b/createIconSet.js index df99654..84be516 100644 --- a/createIconSet.js +++ b/createIconSet.js @@ -1,5 +1,5 @@ import React from 'react'; -import { View } from 'react-native'; +import { Text } from 'react-native'; import { Font } from 'exponent'; import createIconSet from 'react-native-vector-icons/lib/create-icon-set'; import createIconButtonComponent from 'react-native-vector-icons/lib/icon-button'; @@ -32,7 +32,7 @@ export default function(glyphMap, fontName, exponentAssetId) { render() { if (!this.state.fontIsLoaded) { - return ; + return ; } return ( diff --git a/package.json b/package.json index 13b4738..21ea278 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@exponent/vector-icons", - "version": "1.0.3", + "version": "1.0.4", "description": "Built-in support for 8 popular icon fonts and the tooling to create your own Icon components from your font and glyph map. This is a wrapper around react-native-vector-icons to make it compatible with Exponent.", "main": "index.js", "scripts": {},