Comments (8)
In file CachedImage.js
remove import of NetInfo from react native to.
import NetInfo from "@react-native-community/netinfo";
from react-native-cached-image.
Denifer please use @prakashw3expert 's answer.
Ideally you can use https://github.com/ds300/patch-package to create a patch that will be reapplied after each reinstall of react-native-cached-image
from react-native-cached-image.
@DeniferSantiago Open react-native-cached-image from node modules
You need To change manually into this library
Open CachedImage.js
Remove Netinfo from react native
You need to import NetInfo from “@react-native-community/netinfo”; from this
and one more you have to do in it
open utils folder and change const RNFetchBlob = require(‘react-native-fetch-blob’).default; to
import RNFetchBlob from ‘rn-fetch-blob’;
This is only solution of this issue
from react-native-cached-image.
This one is important
from react-native-cached-image.
Facing same issue when add react-native-cached-image
Invariant Violation: NetInfo has been removed from React Native. It can now be installed and imported from 'react-native-netinfo' instead of 'react-native'.
from react-native-cached-image.
@hardikramoliya - sadly this library didn't work for me.
This one did:
https://github.com/DylanVann/react-native-fast-image
from react-native-cached-image.
In file
CachedImage.js
remove import of NetInfo from react native to.
import NetInfo from "@react-native-community/netinfo";
Is there a PR in? Can you please reference if so?
Right now using https://github.com/ds300/patch-package to remedy
from react-native-cached-image.
I am still waiting for a solution for this 😕
from react-native-cached-image.
Related Issues (20)
- Not working on the snack.expo.io platform HOT 1
- ImageCachePreloader does not work on first time preloading HOT 2
- The code in example does NOT really clear the cache
- Netinfo error HOT 11
- Open image in modal
- RN 0.60 support HOT 4
- Update TypeScript types to reflect examples. HOT 1
- Change dependency react-native-fetch-blob to rn-fetch-blob as the previous repo has been achieved HOT 2
- componentWillReceiveProps [Deprecated]
- NetInfo is deprecated from react-native use from @community HOT 9
- Replace react-native-fetch-blob with rn-fetch-blob
- Crashes in release on 0.60
- webp support for image?
- Update Readme HOT 1
- Please remove this issue
- Getting double borders HOT 1
- Error on hermes engine: DocumentDir of null
- separate netinfo from React native & import from react native community
- Import Netinfo from react native community
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-cached-image.