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

Types are not in sync with the main repo #1488

Open matinzd opened 1 year ago

matinzd commented 1 year ago

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

Screenshot 2023-02-28 at 17 20 28