I am trying to create my own Icon set in react native, but struggling with the types.Here is my code for Percolate.tsx file.
import React, {FC} from 'react';import { createIconSet } from '@expo/vector-icons';const glyphMap = {...};const IconSet = createIconSet(glyphMap, 'percolate', '../assets/icon/percolate.ttf');interface IIconSetProps { name: keyof typeof glyphMap, color: string, size?: number, style: object,}const PercolateIcons: FC<IIconSetProps> = ({name, color, size, style}) => { return <IconSet name={name} color={color} size={size} style={style}></IconSet>}export default PercolateIcons;export const Button = IconSet.Button;