Fallback to a <Text /> component rather than view when icon not ready

fbshipit-source-id: 9689995
This commit is contained in:
Brent Vatne
2016-08-23 18:04:46 +00:00
committed by Exponent GitHub Bot
parent a567857ee8
commit 67cab6244c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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 <View />;
return <Text />;
}
return (
+1 -1
View File
@@ -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": {},