mirror of
https://github.com/zoriya/expo-vector-icons.git
synced 2026-05-29 17:02:20 +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 (
|
||||
|
||||
+1
-1
@@ -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": {},
|
||||
|
||||
Reference in New Issue
Block a user