Closed andruxnet closed 4 years ago
I just installed vector icons plugin with ignite add vector-icons and I'm using it like this:
ignite add vector-icons
import Ionicons from "react-native-vector-icons/Ionicons" ... render() { return <Ionicons name={iconName} size={size} color={color} />; } ...
Then when refreshing the app shows the message "Unrecognized font family 'Ionicons'". I tried also with FontAwesome.
I got the sample code from https://reactnavigation.org/docs/tab-based-navigation#customizing-the-appearance
Maybe the vector icons should be installed directly by using yarn add instead, but I thought using the ignite plugin was the way to go? Am I missing something?
yarn add
Nevermind...
import Ionicons from "react-native-vector-icons/Ionicons" Ionicons.loadFont()
I just installed vector icons plugin with
ignite add vector-icons
and I'm using it like this:Then when refreshing the app shows the message "Unrecognized font family 'Ionicons'". I tried also with FontAwesome.
I got the sample code from https://reactnavigation.org/docs/tab-based-navigation#customizing-the-appearance
Maybe the vector icons should be installed directly by using
yarn add
instead, but I thought using the ignite plugin was the way to go? Am I missing something?