When trying to use Vector icons with React Navigation they're resulting into an error in Typescript but they are working absolutely fine in Javascript. Typescript says, "'FontAwesome' refers to a value, but is being used as a type here .ts(2749)" in the tabBarIcon. Not sure what could be the issue seems to be the type definition problem, therefore, I'm dropping down the sample code below.
When trying to use Vector icons with React Navigation they're resulting into an error in Typescript but they are working absolutely fine in Javascript. Typescript says, "'FontAwesome' refers to a value, but is being used as a type here .ts(2749)" in the tabBarIcon. Not sure what could be the issue seems to be the type definition problem, therefore, I'm dropping down the sample code below.