-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unrecognized font family 'Ionicons' #1169
Comments
I got that issue with exactly the same configuration as you. import Ionicons from 'react-native-vector-icons/Ionicons'
export default () => {
const [loaded, setLoaded] = useState(false);
useEffect(() => {
(async () => {
await Ionicons.loadFont();
setLoaded(true);
})();
}, []);
return loaded && <App />
} |
Just go to ios/YourAppName/Info.plist and add: (...)
<dict>
<key>UIAppFonts</key>
<array>
<string>Ionicons.ttf</string>
</array>
(...)
</dict>
` |
SOLUTION |
Project develop environment package.json file:
"react": "16.11.0",
"react-native": "0.62.2",
"react-native-vector-icons": "^6.6.0",
Class import:
import Icon from 'react-native-vector-icons/Ionicons';
IDE:
Xcode11.2.1
VSCode 1.44.2
Debug iOS in VSCode
Log:Unrecognized font family 'Ionicons'
The text was updated successfully, but these errors were encountered: