macOS Monterey Version 12.4
react-native: 0.68.2
react-native-vector-icons: ^9.2.0
expo: ~45.0.0
Issue
When trying to use getImageSource I get the following error:
TypeError: _FontAwesome.default.getImageSource is not a function. (In '_FontAwesome.default.getImageSource('circle', 15, '#fff')', '_FontAwesome.default.getImageSource' is undefined)
Environment
macOS Monterey Version 12.4 react-native: 0.68.2 react-native-vector-icons: ^9.2.0 expo: ~45.0.0
Issue
When trying to use
getImageSource
I get the following error:Code
Notes
I'm not sure if using functional components instead of classes could be the issue, but I'm not sure why that would matter.
Also, here's the link to the docs showing it's usage: https://github.com/oblador/react-native-vector-icons#usage-as-png-imagesource-object