oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.31k stars 2.12k forks source link

Add to README new error explanation #1571

Open eidan66 opened 7 months ago

eidan66 commented 7 months ago

Add to readme explanation about common error message

#### Attempt to insert nil object from objects[0]' was thrown while invoking getImageForFont on target RNVectorIcons - IOS
- If you see this error message:

>   Exception '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]' was thrown while invoking getImageForFont on target RNVectorIcons with params (
>     FontAwesome,
>     "\Uf0c9",
>     23,
>     4294967295,
>     102,
>     103
> )
> 

Make sure the Fonts are added to Xcode properly ([as explained here](https://github.com/oblador/react-native-vector-icons#ios-setup)).
** You can know which font is missing by the name of the first params (In the example above - FontAwesome)
**