-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Netinfo error #166
Comments
I think |
@glCoder8 i use Netinfo.isConnected....but it undefined....not networkAvailable |
@hustlercoder I mean, react-native-cached-image component using NetInfo for setting and I think you are getting error because you are using higher level of NetInfo package (maybe 3.x.x), but react-native-cached-image using NetInfo package 2.0.3. to get rid of your issue, you need to use same version of NetInfo in your project, so it should be 2.0.3 |
@hustlercoder you are right , i have this issue as well, this module is still using NetInfo from react-native, react-native-cached-image/CachedImage.js Line 19 in d7320ea
Which is not correct because NetInfo got removed to it's own repo https://github.com/react-native-community/react-native-netinfo |
Is there any fixes? |
@orcunorcun i think no...anyway i will try another package because for now there is nothing to do... |
I got the same error =/ |
same issue. is there any fix for this issue? |
I think they forgot that library. So someone should create a new npm package :/ |
you must change to const { const NetInfo = require('@react-native-community/netinfo'); |
Another for https://github.com/ds300/patch-package |
Hi there i had an issue with the library.I think it can be related to the fact that netinfo library is not part of the standard react library anymore so the api has changed.
The caching process fail with error: Netinfo.isConnected undefined.
The text was updated successfully, but these errors were encountered: