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 (