I'm encountering an issue with React Native Vector Icons. The error message I'm receiving says:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
After running npm install to add react native vector icons to my project, I used the following command:
npm install --save react-native-vector-icons
Despite having react-native-vector-icons listed in my package.json file, I am still encountering this error. Additionally, when attempting to link it using error: unknown command 'link'
.
Have any idea on how to resolve this issue?