mirror of
https://github.com/zoriya/expo-vector-icons.git
synced 2026-05-30 09:08:50 +00:00
Fallback to a <Text /> component rather than view when icon not ready
fbshipit-source-id: 9689995
This commit is contained in:
committed by
Exponent GitHub Bot
parent
a567857ee8
commit
67cab6244c
+2
-2
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user