oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.45k stars 2.12k forks source link

_Ionicons.default.getImageSource is not a function #1174

Open erik7z opened 4 years ago

erik7z commented 4 years ago

Good day to all ! I'm trying to implement react-native-vector-icons in react-native-navigation from wix. Originally i had expo project, but i've ejected it and manually linked RNN & RNVI.

Normal usage of icons is OK, but when i trying to use getImageSource function it fails.

rnvi-normal

rnvi-getimagesource

Environment

"react-native": "~0.61.4", "react": "~16.9.0", "react-native-vector-icons": "^6.6.0", "react-native-navigation": "^6.6.0",

Checked issues and trials:

I've already checked issues: https://github.com/oblador/react-native-vector-icons/issues/700 https://github.com/oblador/react-native-vector-icons/issues/791 and other similiar issues on stackoverflow.

But nothing helps

HectorRicardo commented 4 years ago

This is because the npm package does not contain this feature yet. getImageSource() was implemented a few months ago, but the last publish date of the npm package is June 27 2019

sudarakas commented 4 years ago

This is because the npm package does not contain this feature yet. getImageSource() was implemented a few months ago, but the last publish date of the npm package is June 27 2019

I'm facing the same issue, so is there no answer to this? :/

sudarakas commented 4 years ago

This is because the npm package does not contain this feature yet. getImageSource() was implemented a few months ago, but the last publish date of the npm package is June 27 2019

I'm facing the same issue, so is there no answer to this? :/

I figure out the problem, projects which were setup using expo won't support getImageSource function even you eject successfully.

saulosm commented 4 years ago

So, no workaround?

varadig commented 3 years ago

So, no workaround?

i'm also curious, because I want to use it with expo

AlenToma commented 2 years ago

I am using expo with bare settings and I am getting this error using package "react-native-vector-icons": "^8.0.0"

What is the problem? this should work with bare settings? is it that the package dose not contain this method, should I upgrade?

saadazghour commented 11 months ago

Hello @oblador ,

I have the same problem here, and this is what I get


Uncaught TypeError: _expo_vector_icons_Ionicons__WEBPACK_IMPORTED_MODULE_6__.default.getImageSourceSync is not a function