react-native-vector-icons icon indicating copy to clipboard operation
react-native-vector-icons copied to clipboard

Types are not in sync with the main repo

Open matinzd opened this issue 2 years ago • 0 comments

  • [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

Screenshot 2023-02-28 at 17 20 28

matinzd avatar Feb 28 '23 16:02 matinzd