react-native-vector-icons
react-native-vector-icons copied to clipboard
Types are not in sync with the main repo
- [x] Review the documentation: https://github.com/oblador/react-native-vector-icons
- [x] Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues
Environment
"react-native-vector-icons": "^9.2.0",
"@types/react-native-vector-icons": "^6.4.13",
Description
Some types are not in sync. For example:
/**
* Returns your own custom font based on the glyphMap where the key is the icon name
* and the value is either a UTF-8 character or it's character code. fontFamily is the name
* of the font NOT the filename. Open the font in Font Book.app or similar to learn the name.
* Optionally pass the third fontFile argument for android support, it should be a path
* to the font file in you asset folder.
*
*/
export function createIconSet(
glyphMap: {},
fontFamily: string,
fontFile?: string
): typeof Icon;
Reproducible Demo